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.
03-01-2006 03:06 PM
03-01-2006 03:13 PM
03-01-2006 05:12 PM
Hello,
Yes, this is a limitation of the MS Office Report Express VI...your named cells/ranges can only be on the first sheet. I will look into fixing this problem in a future version of the Report Generation Toolkit.
-D
10-26-2011 08:38 AM
Hi,
I am using Labview 2009 SP1 and the same problem still exists. I can create a link using MS Office Report to a cell in the first worksheet, however, it will not allow a link to worksheet 2. Was this ever resolved?
Report Generation Toolkit: You specified invalid Word bookmarks or Excel named ranges.
Thanks,
Ryan
09-04-2012 03:16 AM
I can witness this issue still exists more than 6 years after the first post! *sigh*
From my experience, the problem doesn't occur when the named range is not on the first sheet, but when it is not on the "active" sheet, that is, the one that shows first when opening the spreadsheet.
This can be easily tested: open your template, select another sheet, save and close.
Now re-execute labview code with report generation and named ranges from the first sheet that worked before don't work anymore...
(Win7x64eng, Office2007Pro+, LabView2011 SP1)
09-05-2012 09:09 AM
I found a workaround:
I modified Excel_Get_Range vi in the framework libraries and added a loop to iterate through the other worksheets of the workbook until I find the named range.
Well, I guess that hacking in framework VI's is not a solution that NI would recommend (and for good reasons).
I nonetheless posted the modified VI in case someone would be curious about it.
09-14-2016 06:05 PM - edited 09-14-2016 06:06 PM
This issue is still not fixed in LV2015
But a big thanks to GNO for the patch!
09-27-2018 08:57 AM
@GNO wrote:
I found a workaround:
I modified Excel_Get_Range vi in the framework libraries and added a loop to iterate through the other worksheets of the workbook until I find the named range.
Well, I guess that hacking in framework VI's is not a solution that NI would recommend (and for good reasons).
I nonetheless posted the modified VI in case someone would be curious about it.
The problem is still not fixed in 2018, but thankfully this does the trick! Use GNO Member's modified VI by replacing the original "Excel_Get_Range" VI. It should be located in C:\Program Files (x86)\National Instruments\LabVIEW 2017\vi.lib\addons\_office\_exclsub.llb
I made sure to copy the original "Excel_Get_Range" VI into another location in case things went south and I recommend you do the same just to be safe. However, this worked like a charm!