05-04-2007 03:30 PM
05-04-2007 04:06 PM
With the standard report generation functions in LabVIEW, you can generate a Standard report (sent to the printer) or an HTML report. There is an add-on for LabVIEW called the Report Generation Toolkit which allows you to use the same report generation functions to generate Word and Excel reports as well.
I don't know of any special printer drivers that allow you to bypass the print dialog.
Good luck,
-D
05-04-2007 04:57 PM
I went and looked at the Report Generation Toolkit and it doesn't do what I am needing. It does allow the programmer to create a report for visualizing in Word but it doesn't save it FOR Word. It opens Word and allows the user to save from WITHIN Word.
What I am needing to do is the report generation and file saving from within LabView programmatically. I also need to be able to set the file as a READ ONLY file. Using the Report Generation Toolkit would allow the user of my program to change the data before saving. This cannot be allowed for this project. The HTML report generation is out the question for this project.
This is the reason I have looked into using a Virtual Printer like MS XPS Document Writer. This creates a file that cannot be opened for edit as it is a Print to File XML formatted file. However, the user of my project would have to supply the filename and path. This is a major problem as well.
Any other ideas?
05-04-2007 05:19 PM
05-07-2007 12:46 PM
Am I correct in my understanding about the Document Toolkit, to create a Word doc the system that creates it has to have Word installed? If this is true, what about Word Viewer? Would it work just as good as Word itself? I figured out how to NOT have the Word program open and thus have the text generated be editable by the user. But do I really have to have Word?
The issue is that the system my executable will be running on has minimal software installed. IE No Word or Office. However, I can install Word Viewer if I have too.
05-07-2007 01:21 PM - edited 05-07-2007 01:21 PM
I have never tried using the Report Generation Toolkit on a system with just Word Viewer installed, but I'm guessing it will not work. The toolkit uses ActiveX to generate and modify reports, and I'm guessing the Word Viewer does not include all the ActiveX functionality that Word itself includes.
If you are going to be generating reports on a "minimal" system, I suggest generating HTML reports, since the machines will have a web browser installed, and that's all you need to view the reports. In addition, you don't need the Report Generation Toolkit to generate HTML reports...this functionality is included in the core Report Generation VIs in LabVIEW.
Good luck,
-D
Message Edited by Darren on 05-07-2007 01:22 PM