04-05-2023 02:53 AM
Hi,
I've come out an exe program using the database toolkit to write/read the data to excel template.
The exe installed in the target PC without microsoft office and not doubt it give an error code of -41106.
So, if the target PC map to the server PC which has the microsoft office install, and the exe prompt to the template excel to write/read, will this work??
Do have any other solution other than require to have microsoft office to be install in target PC?
Thanks,
Simon
Solved! Go to Solution.
04-05-2023 12:02 PM
I'm not familiar with the "Database Toolkit". I'm pretty sure that the Report Generation Toolkit, which lets you open Excel WorkBooks, read them, and write them, requires Microsoft Excel to be installed where the software is running. I must say that I've never tried to build an Executable that uses the RGT and attempted to run it on a PC without Excel -- I am only assuming that it will fail.
Bob Schor
04-06-2023 07:00 AM
04-06-2023 07:21 AM
You need a licence for Microsoft Office, if you are going to use Report Generation Toolkit for Excel/Word documents.
We also used templates to write our reports, but it wouldn't do it without a licence (it would just open a blank word document and throw an error).
I don't think you can use a licence on another computer/server to do this, it needs to be locally activated office (at least i didn't have any success with this).
In the end we gave an option to disable report generation and plan on replacing it with PDF (Carya Toolkit one) report generation.
In the meantime we use another program (non-LabVIEW) to gather data from the database and generate a pdf report.
04-07-2023 03:43 AM
Hi MaSta,
I have the template which have define name.
Can the Claudie_xls function able to dump the data array to the define name template?
Thanks,
Simon
04-07-2023 04:04 AM
Hi AeroSoul,
You're right, verify with the server system, it not able to do this, only work with local license.
Possible for you to share with us another program (non labview) to gather data.
Thanks,
Simon
04-11-2023 02:35 AM
Unfortunately it's proprietary, so i can not share it.
Even if i could it probably wouldn't be helpful to you since it was specifically made for our use case.