11-05-2019 11:43 AM - edited 11-05-2019 12:12 PM
I tried Activex, but couldn't figure how to implement it in my code. Can someone please help?
I attached a VI and the excel file (TDMS)
11-05-2019 12:07 PM
Nothing attached.
This task will be difficult because it depends on the font style and size. If you know the maximum length of a column (because the contents are no more than a certain number of characters), I think it would be easier to just set the column width that way.
11-05-2019 12:13 PM
I attached the files.
11-05-2019 12:16 PM
I just read a post about a function called "Get Text Rect". This may help you get the size, in pixels, of a string of characters. Then you can use that to set the column width.
11-05-2019 02:45 PM
@aputman wrote:
I just read a post about a function called "Get Text Rect". This may help you get the size, in pixels, of a string of characters. Then you can use that to set the column width.
That of course is the right answer!
Jean-Pierre was one of my early LV mentors.
Ben