01-16-2015 04:17 PM
Hi, I am trying to generate a report using the MS office express vi and after follow the instructions in the manuals and check the examples I cant fill a table predefined in my own template!! and I get an error
Error -41110 occurred at NI_ReportGenerationToolkit.lvlib:ex_RGT_Append Anything To Report.vi -> NI_ReportGenerationToolkit.lvlib:subMS Office Report Block.vi -> test_report.vi:MS Office Report.vi-> test_report.vi
while processing the module_ID input.
I am using labview 2011. attached is a vi that I wrote to study only the report generation.
I appreciate any suggestion.
01-16-2015 04:53 PM
Where are you generating the Report? I don't see anything happening in the VIs you submitted. I don't understand what Report Base Info does, where is "Create report and finish", and is there a top level VI somewhere?
BS
01-16-2015 05:03 PM
Hi Bob_Schor
sorry I forget many details.
I am getting all the information from other vi's , from a dialog box in the "promp user for input" (additional comments) and also from the "report base info" where the user have to enter some info. The "create report and finish" is a buttom in the main vi (the top level vi)
the code I attached is just a simple code to reproduce the report generation.
thank
01-16-2015 05:05 PM
also note that the ms office report express vi is confugured to open the report wihtout seve it.
thanks
01-16-2015 05:05 PM
also note that the ms office report express vi is configured to open the report wihtout save it.
thanks
01-16-2015 07:39 PM
@jmonroy wrote:
also note that the ms office report express vi is confugured to open the report wihtout seve it.
thanks
Which VI has the MS Office Report Express VI? I didn't see it in any of the attachments -- without seeing any Report code, it's extremely difficult to figure out how to help you. Help us help you.
BS
01-17-2015 10:53 AM
Hi Bob_Schor
I'm so sorry again I had a confusion with the names of the programs, attached is the program: generate report.
thank you very much your time.
01-18-2015 12:57 AM
Thank you, now I see what you are doing. I must confess that I'd never heard of an Express MS Office Report -- one of the first things that I do when I configure LabVIEW for myself is to "hide" the Express Palette so that I never even know that it is available!
I'd strongly recommend that you stop using the Express MS Office Report, and instead use the Report Functions found on the Programming Palette. It takes a few more steps, but you have a lot more control over what is happening, and can generally customize the Report quite easily by doing it one element at a time.
I've not (yet) made Word reports using LabVIEW, but I've done quite a bit with Excel (both reading data from Workbooks and writing data to Worksheets in a Workbook) and HTML (I use this as the output for a Test Report that I generate while checking the validity of an Excel Worksheet designed to run a test protocol). I'd imagine that generating a Word Report would be similar to generating an HTML report -- you'd "start at the top" and generate elements as you go down the page, formatting as you go (it would, of course, all be text ...).
Can you see the Programming Palette, and the Report Generation sub-Palette on your system? Can you explore the New Report, Easy Text Report, the various Append functions, and the Word-specific sub-sub-Palette? Again, avoid the Express VIs! [I see that I'm so averse to using them that I never noticed that they also show up on the Programming Palette ...]
Do you have a (simple) example of what you want in your report? [It helps, sometimes, to "start small" with a few elements of the report, instead of everything all-at-once ...].
BS
01-18-2015 03:43 AM
01-19-2015 12:55 PM
Well, you have certainly picked a fairly challenging task for LabVIEW to undertake! I've thought about how I would do this (or even if I would do this), and have some observations.
I can say, with some confidence, that the Snippet above will, in fact, produce a Report that follows your Template, once you handle the "details" of coding those four sub-VIs. Take a look at the Word-specific sub-Palette in the Report Generation Palette, and in the Word Tables sub-sub-Palette.
Bob Schor