08-10-2016 11:25 AM
Hi all,
Recently built a stand alone application using RGT on a computer using office 2010 and saw no issues. On the target machine, using a more recent version of office 2013, I experienced issues. I note the office versions and RGT versions because there could be compatibility issues if using RGT 2011 with office 2013. Now i built the application in LV2015 and what i had hoped was RGT2015, but I also have installed on my computer RGT2011 and LV 2011.
My question is how can I authenticate that i am using RGT2015 in my VI?
Thanks for any help.
Solved! Go to Solution.
08-10-2016 12:27 PM
I don't have the RGT installed but you could:
1) Check for the presence of a particular file/folder (the one containing the RGT)
2) Try to find a registry key which specifies the version of the RGT
3) Use the system configuration VIs to see if they return the version (as you can see in MAX)
4) Programmatically get the 'version' of the NI_ReportGenerationToolkit.lvlib located here: <vi lib path>\addons\_office
Of course, if you create an installer and bundle the appropriate version of the RGT with it, you'll always know you have the right version installed.
08-10-2016 12:29 PM
I suppose the RGT located in the labview 2015 addons should be RGT 2015 correct? Which i did bundle with it.
08-10-2016 04:32 PM
When you install LabVIEW, you notice it shows you two Directories into which it will install, something like ...\National Instruments\LabVIEW 2016 and ...\National Instruments. All of the Version-specific code (add-ons, modules, VI.lib, User.lib, etc.) go into the Version-specific folder, so you can be sure that if you develop with LabVIEW 2015, you'll get the 2015 RGT. The "outer" folder is where "version-independent" stuff such as Drivers, MAX, etc. go, and even there, if there is Version-specific stuff, you'll find sub-folders.
NI seems to do a fairly good job keeping their Versions straight ...
Bob Schor