Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am new to iLogic and I found this code in the forum and it appears to work perfectly but I cannot figure out how to get the columns to fit the text width automatically. When the table imports it wraps the text onto another row when it's too wide for the cell.
Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oActiveSheet As Sheet = oDrawDoc.ActiveSheet
' Create the placement point for the table
Dim oPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(36.6,11)
Dim oExcelTable As CustomTable = oActiveSheet.CustomTables.AddExcelTable("C:\Temp\test.xls", oPoint, "Excel Table")Can someone tell me how to modify the code so that the column width automatically fits to the width of the text when they are imported into the drawing or can this only be a manual process of widening the columns?
Solved! Go to Solution.