01-31-2020 10:35 PM
i am using report generation Toolkit to generate report in XPS format.its working fine with one pc.when i am running same VI on different PC with Labview Run Time Engine.Its Throwing attached error.please help me out to solve with this error.
Solved! Go to Solution.
01-31-2020 11:40 PM
Googling that error number tells me that the problem might be related to the use of the System Config libraries (and not the RGT).
Can you share the code that is causing the error?
"An unidentified location" doesn't really help with identifying the problem.
I would start by checking that the System Configuration library/package is installed on the target you're running it on (the "different PC" with the Runtime engine). I believe it has a separate runtime package - Download system-configuration (and select Runtime rather than Full, if desired).
02-01-2020 02:24 AM
Download system-configuration (and select Runtime rather than Full, if desired).
I tried with this package still i am getting same error.
02-04-2020 04:09 AM
https://forums.ni.com/t5/LabVIEW/Using-Kingsoft-With-Report-Generation-Toolkit/td-p/3217347
Here somebody discussed with same issue.In my case i am also using Report generation Toolkit with MS office in one pc and in other PC i am using KIngsoft.i am getting the error with KingSoft.So please letme know what is the exact reason.
02-04-2020 06:44 AM
I have no experience with Kingsoft, but I'd say the guidance given in that thread looks pretty good. In particular, RolfK's posts about the specific organisation of the ActiveX objects might help you.
He lists a specific VI that you might be able to change in order to get the behaviour you want.
"vi.lib\Utility\NIReport.llb\Word\new report subVI.vi" and "vi.lib\Utility\NIReport.llb\Excel\new report subVI.vi"
see post #4 in that thread you linked.
02-06-2020 03:46 AM
i already tried with mentioned VI.but for me its very difficult to change that sub VI.so i am thinking i will proceed with the Ms office.so please tell me exact .dll used for MS office in labview for Report generation.
02-06-2020 04:52 AM
@Risuraj wrote:
i already tried with mentioned VI.but for me its very difficult to change that sub VI.so i am thinking i will proceed with the Ms office.so please tell me exact .dll used for MS office in labview for Report generation.
Hmm... I'm not sure how to best answer that.
The Word and Excel VIs in the Report Generation Toolkit use an ActiveX reference each, to "Excel._Application" and "Word._Application" respectively.
Whether these are the correct names for the ActiveX components, I'm not completely sure.
Why do you want to know this? It seems likely that you will need an installed, licenced copy of Word (or Excel) to use the RGT with Word (or Excel) - LabVIEW checks for this in "Create Report.vi" via "ex_RGT_TestLicence.vi". That subVI is protected by a password, so you can't see what it does internally. Based on the execution time and the name, I'd guess it's checking my computer for a valid Office licence.
If you install Office (Word or Excel) then those VIs (RGT) will work nicely. Without it installed, I suspect you won't have much luck just copying some individual files from another computer - and even if you could make it work, I'm fairly sure it would be illegal... As a result, I'm not sure why it matters which DLL is used 😕
02-06-2020 05:58 AM
I'm not sure why it matters which DLL is used.
when .exe file with labview run time engine execute on different PC its needed.
02-06-2020 06:25 AM
I would imagine (although I haven't tried this) that what you need is Office to be installed on the different PC (or Word, or Excel, or whatever you use for your report using the RGT).
I understand that typically when we create executables, (and then perhaps installers) we'd like to bundle everything together (e.g. exe file, driver installers, perhaps the run-time engine installer, various DLLs that might be used by the code) but I think based on the way the ActiveX code is found, it needs to be "globally" installed on the computer.
There's an interesting post here in which the OP (and solution giver) mentions a "Microsoft Excel Object Library" - probably this contains the _Application reference you need.