From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-10-2012 07:01 PM
I'd like to programatically add LabVIEW-generated data to a nicely-formatted *.xlsx file, one with all the right borders and column widths, etc. But every time I try to add the LabVIEW data, the xlsx file formatting gets all screwed up and the file gets corrupted. Is there a way around this?
Thanks!
- FB
Solved! Go to Solution.
07-10-2012 07:13 PM
How are you modifying it? Are you using the XML parser? However you are doing it you have to make sure you are paying close attention to the spec in the MSDN. I have never used it but the report generation toolkit might help a lot.
07-10-2012 07:47 PM - edited 07-10-2012 07:47 PM
It will probably be easier to use ActiveX to control Excel and modify the file that way if you have that option, instead of writing the XML directly.
07-10-2012 08:33 PM
Absolutely! But even that is a pain. I don't know for sure but I would imagine that the report generation toolkit uses ActiveX under the hood.
07-10-2012 10:32 PM
@Steve Chandler wrote:
Absolutely! But even that is a pain. I don't know for sure but I would imagine that the report generation toolkit uses ActiveX under the hood.
Yes, the Report Generation Toolkit uses ActiveX automation to build Excel and Word reports.
07-11-2012 04:18 PM
FB,
I was able to find the following link on the NI website. I think it addresses the issue you are describing using the Excel ActiveX interface.
Regards,
Isaac S.
07-12-2012 12:02 PM
I'm slogging my way up the ActiveX learning curve. It's challenging, but fun.