LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Excel file without changing the template file

Solved!
Go to solution

Hi

i need help with below simple Query

 

I am generating an excel file using an existing template. The new file gets generated but it is also making the changes in template. Is there a way using which i can avoid making any changes to the template file.

0 Kudos
Message 1 of 4
(634 Views)

Without actual code, it is hard to guide you. Are you using any toolkit or use the ActiveX?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(612 Views)
Solution
Accepted by topic author RGrag

I'm assuming you are using the Report Generation Toolkit.

 

When you do a "Create Report", you essentially open Excel.  At this point, if you specify a Template Excel WorkSheet, the contents of that WorkSheet will appear on the "working copy" in Excel.  When you are ready to "Save Report to File", you need to specify the Path for the File.  To avoid overwriting the Template file, specify another file name.  That's all there is to it.  

 

Finally, there is "Dispose Report".  This basically closes Excel, so once you've done this, Excel leaves memory.

 

Bob Schor

Message 3 of 4
(581 Views)

Yes, it works. I'm able to create new file without changing the template file.

0 Kudos
Message 4 of 4
(576 Views)