12-14-2017 02:16 PM
Has anyone had odd behavior happen when trying to write data to a Excel file while minimized? I ask because whenever I program LabVIEW to open Excel, open a template, save it as another name, manually minimize Excel (our company has upgraded to Excel 2016 from Excel 2010), and then try to write data to the file, I always get an unhandled error. It appears that whenever Excel is minimized, it seems to lose its reference and thus the error is generated.
Has anyone had this error before? I am running LabVIEW 2016 but I don't know what version of the Report Toolkit I have, or really, where to look for it. An example is below.
12-14-2017 03:19 PM
12-14-2017 03:40 PM
Ben - it doesn't appear so. It writes fine, either by using normally (unwired) or maximized window states (either manually or having the window state set). I tried setting the state to minimized and I get the same error.
I feel like if the Save Report to VI doesn't update the refnum when minimized but does for the other states, then it's a bug. It states in the documentation as "a reference to the report whose appearance, data, and printing you want to control" which would mean that I should be able to use it. It even states that I can use this with Excel and Word reports.
Are you thinking something different?
12-14-2017 03:52 PM
I remember about a similar problem and found this thread. The 3rd post from the end gives a possible solution.
Ben64
12-15-2017 08:02 AM
That wasn't it but it gave me some time to dig into the issue. The issue, at least in my case, is the NI_Excel.lvclass:Excel Merge Cells.vi with the Range.Merge Invoke Node. It works under any state other than when Excel is minimized, then an error occurs.
I do have a workaround (don't minimize Excel) but I wonder if this as been brought to any NI Rep.
12-16-2017 03:26 PM
The best way to find out if NI is aware of a potential bug is to file a bug report. Otherwise, you're hoping someone from NI happens to see this specific thread, read all the way through it, and respond to provide that information.
12-18-2017 01:11 PM
12-18-2017 03:09 PM
Ben,
That did not appear to work. I get the same error as before. I went ahead and took natasftw's advice and placed a bug report with NI. We'll see what that does.
Thanks for your help.
12-19-2017 07:27 AM
Bug report is #680269.