LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reporting toolkit and XLSX File

In my VI, I open an excel workbook in XLSX format, made some changes, and close/save the workbook in my program.  After that, when I tried to open the file manually, it says that the file is corrupted and needed to be fixed.  This problem doesn't happen when I do the same thing with XLS format.  Anybody knows what's going on?  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 16
(3,877 Views)

Maybe a version compatibility issue. If your version of the RGT is older than the LV2010 version it does not support Excel 2010.

 

Ben64

 

 

0 Kudos
Message 2 of 16
(3,875 Views)

What do you mean by RGT? 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 16
(3,873 Views)

RGT: Report Generation Toolkit

0 Kudos
Message 4 of 16
(3,870 Views)

My RGT version is the one that comes with LabVIEW 2011 developer suite.

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 5 of 16
(3,861 Views)

Hi,

 

According to this RGT with Office Compatibility KB, the RGT associated with LabVIEW 2011 should work with Office 2010 just fine, and therefore work with spreadsheet format .xlsx. That being said, let’s get into a little more detail what changes are you making to the spreadsheet file. Can you post your code to see what modifications you are making to the VI? Also a screenshot from Excel that shows the error would be helpful.

I tried this example with an already created .xlsx file and I tried to open it afterwards and I didn’t get any error.

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
Message 6 of 16
(3,840 Views)

I have attached the vi and the error.  Please help.  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
Download All
0 Kudos
Message 7 of 16
(3,828 Views)

Hi,

 

Sorry for the late response. Can you include in your code Test Result Cluster and Create Dir if Non-Existent so that I can run your VI? Also, can you try to reproduce this on your local hard driver, as opposed to a network location?

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
Message 8 of 16
(3,800 Views)

Sorry for the late response.  The message completely fell off my radar.  i have attached the two vi requested.  When I ran the VI to repeat the bug, I did it locally, even though there are network path written down on the block digram.  Please help me to continue to look at this. 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 9 of 16
(3,776 Views)

Hi,

 

Sorry but I'm still missing "Build Path - Traditional_ogtk.vi" in order to see be able to run the code. Please make sure to include all subVIs that this VI might have.

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
Message 10 of 16
(3,754 Views)