MS office report

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.
Attachments:
test report.vi ‏22 KB
SOP_103_template.dot ‏32 KB
base_info_Report.vi ‏17 KB

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.
A Word Template does not necessarily make life easier if you are "driving" Word from LabVIEW.  It is designed for human interaction, with the (human) ability to tab around and ensure that the cursor is in the correct field for inserting an element.
In particular, your Parts List does not "tab nicely".  In particular, it will expect exactly 1 entry in the UNL Batch No., and precisely 4 Parts entries (as you tab around, notice you enter the Batch No. field four times).
If I were doing this, I would generate the entire Report "on the fly", that is, I'd start with a blank Report, generate the heading ("Manufacturing of modules ..."), generate a Report Header Table (Date, Start, Finish, Operator, etc.), generate a Parts List table, and generate a Comments section.
I would certainly "encapsulate" the messy code for each of these steps in its own sub-VI.  Thus my Report would look something like this:
Each of the sub-VIs generate part of the Report.  Header generates the static text at the top.  Report Info generates the Date, Time, Operator, etc. part of the report, Parts List generates the Parts List table, and Comments generates the Comments at the end.
The Report "data" is encapsulated in four variables:
Report Info is a cluster with entries Date, Start Time, Finish Time, Operator, etc.
Parts List is an array of clusters (UNL Batch, BBM ID, and HDI S/N).
Comments is a cluster with entries Orientation, Glueing, etc.
Report Path is the path and name of the output Word document.
Report Info can be formatted as a table of two columns.  Each entry has a fixed string (for example, "Date:") and a variable (the value in Report Info.Date, the cluster element).  You can format the table with top and bottom borders if you want that look.
Parts List is fairly complicated.  It has some "pure text" (the string "List id of parts ...") and a Table.  The Table is fairly straight-forward, with a fixed Header and a style for borders and lines.  To get the UNL Batch formatting as a single cell, you can try to merge cells (based on where the UNL Batch values remain constant).
Comments can just be treated as ordinary text, with "header strings" (such as "Orientation:") written before the value in the corresponding Comment cluster element (e.g. Orientation) is written.
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

Similar Messages

  • MS office report not working when application is compiled (application builder)

    I'm finishing up an application that includes several MS office reports (opens a MS Word template). The template is opened, the bookmarks are filled, then the file is saved (to our internal network) as a .doc file. The New Report.vi is used to open the .doc file, the Print Report.vi is used to print the file, then the SMTP send file.vi is used to email the file.
    Everything has been working fine then I decided to build the application for distribution. Big mistake! An installer is made. When I install the application I get "File not found" (error 7) errors each time I attempt to run this section of code. Incidentally, This app. also uses the SQL database toolset to read and write to a database. No problems with the database.
    I thought it might have something to do with the Word templates being on the network. I copied everything to my local PC and built another application. Same problems.
    I suspect I'm doing something wrong in the Source Files tab of the Build Application or Shared library window.
    I'd really appreciate your help.
    thanks,
    todd

    Most likely, you're looking at a path problem to the template file from the applicaiton.
    When you build a VI into an applicaiton, the path to that applicaiton changes. If originally the VI that calls the template file was located "c:\app\caller.vi", after you build the executable, that same VI will now be located at "c:\app\toplevelVI.exe\caller.vi".
    The executables name will now actually be a part of the path. So you may need to add an extra "Strip Path" function somewhere to get you to the real path to the Excel file. Of course this is just a guess without seeing your code. You could try going back to the LabVIEW code and add a path indicator where you are building the path, then re-build the application and run it so you can see what the path is after it's built.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • MS Office Report, too many dimensions

    Hello,
    I'm trying to add some code to a program I wrote for Diode Testing. Basically I want the program to run thru the tests and then send the data to Excel automatically. I was able to use the configure MS Office report function in labview to do this, but it will only work if I use a String or a double. Neither of these works for what I'm trying to do as I have negative datapoints and have them linked to formulas. When I try to select integer and run the program it gives me an error saying "Report Generation Toolkit: You cannot use arrays with more than two dimensions.". I've spent about 2 hours looking thru my code today and cannot find any location where I have an array of Dimension 3. I've attached my code. Also note that I am only using the case 1 after the boolean for testing purposes, the other cases have code, but it needs to be changed still so can be ignored.
    Any help would be greatly appreciated!,
    Konrad
    Attachments:
    frontpanelbackup.vi ‏279 KB

    Hi,
    The file you attached is missing some subVIs (Instrument Control VIs?) and global variables, so I can't run your program to recreate the error.  Please post your error code number, that would help in moving forward.  Also have you tried placing probes?  If you place probes on the input wires of all  your arrays you can monitor what is passing through the wires as inputs.
    Peter T
    Applications Engineer
    National Instruments

  • MS Office Report problems after compliing (application builder)

    I'm finishing up an application that includes several MS office reports (opens a MS Word template). The template is opened, the bookmarks are filled, then the file is saved (to our internal network) as a .doc file. The New Report.vi is used to open the .doc file, the Print Report.vi is used to print the file, then the SMTP send file.vi is used to email the file.
    Everything has been working fine then I decided to build the application for distribution. Big mistake! An installer is made. When I install the application I get "File not found" (error 7) errors each time I attempt to run this section of code. Incidentally, This app. also uses the SQL database toolset to read and write to a database. No problems with the database.
    I thought it might have something to do with the Word templates being on the network. I copied everything to my local PC and built another application. Same problems.
    I suspect I'm doing something wrong in the Source Files tab of the Build Application or Shared library window.
    I'd really appreciate your help.
    thanks,
    todd

    Todd,
    You need to add a dynamic VI to your list of Source Files in the Build Application window. The one you need is called "_Word Dynamic VIs", and it can be found at \vi.lib\addons\_office\-wordsub.llb . Doing this ensures that the executable can find the appropriate code when it is asked to dynamically load some Word-related VIs at execution-time.
    I consider the difficulty of getting everything right when building executables to be just about the biggest problem that LabVIEW has, so don't feel too badly about it. I believe this requirement is covered somewhere in the Report Generation Toolkit documentation, but I think the process should be easier and more transparent to the user when they are working with NI-produced toolkits.
    --John

  • Error -4110 with MS Office Report VI

    I am trying to use the MS Office Report VI to open an Excel template that has two worksheets and then write information to named ranges on the two worksheets.  The VI works with no error when writing information to only the first work sheet but it I try to write to the 2nd worksheets an error -41110 occurs. Is this normal?
    I am using LabVIEW 7.1, Report Generation Toolkit 1.1.1 and Excel 2000.

    Hi Joch,
    Well, I've always been a big fan of workarounds. I love a challenge! So here's one for you that should allow you to continue using the Express VI.
    If you can only use named ranges from the first page, why not selectively make whichever page you currently hope to edit the first page! This will mean that you can only insert values into your template Excel file one page at a time, but that's not too bad I suppose.
    So I wrote a small subVI that will use ActiveX to programmatically make a sheet of your choice (1,2, 3, etc) the first page, then saves and closes the workbook. Let me know if this helps!
    Message Edited by Jarrod S. on 06-28-2006 11:06 AM
    Jarrod S.
    National Instruments
    Attachments:
    Reorder Excel Sheets.vi ‏65 KB

  • MS Office Report (Report Generation toolkit) is not executable​, Xnode broken?

    Hi, I am trying to generate an excel report, and I figured it would be easier to use the MS Office report VI, but I am getting the broken arrow saying the SubVI is not executable and that the library that defines the xnode is broken... here is a screensot attached, I already uninstall and reinstall the report generation toolkit and still the same... this is what I found on NI: "This error occurs when the library that defines the XNode you used is broken. To correct this error, reconfigure the XNode." but no idea how to reconfigure xnode
    Attachments:
    Error.png ‏67 KB

    What version of LabVIEW are you using?
    What is the nature of your Report?  What should it look like?  What kind of data should it contain?
    Can you show us some code that you've tried to use?  If so, include the code as either a Snippet or as a VI attachment (so we can plug it into our own LabVIEW installations and experiment with it).
    I generally find that the Report Generation Toolkit is a very easy way to generate Excel Workbooks.  I work primarily with LabVIEW 2012 and LabVIEW 2014.
    Bob Schor

  • MS office report function does not work after building the appication

    I use the MS office report function  with a custom excel template my application.
    It works properly in de developstate, but after building the application it does not work .
    I use office 2000  and Windows XP

    jmq wrote:
    I use the MS office report function  with a custom excel template my application.
    It works properly in de developstate, but after building the application it does not work .
    What error message if any did you get? It could be a couple things:
    1. Did you include the Report Toolkit's dynamic vis in the app's build process?
    Ref: Error 7 when Running an .EXE Using VIs from Report Generation Toolkit for MS Office
    2. How are you giving the path to you custom template, as a relative or an absolute path? The path will be different for the .exe. You have to strip twice.
    Ref: Why Can't My Executable Load My Included File When I Use Relative Path Encoding?
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Class Not Registered error upon using MS Office Report

    Hello,
    Using LabVIEW 2010, I've just installed the Microsoft RGT trial from NI, along with the Office 2010 trial from Microsoft. Upon trying to drag the MS Office Report VI to my block diagram, the configuration dialog appears but immediately an error dialog shows up over top, with a Class Not Registered error. Attached is the screenshot. If I close the error and try to configure the VI for a basic Excel report, I get a file-not-found error in reference to the Excel template, which I have verified is indeed at the target path and opens with my version of Excel just fine. Any ideas how to get past this error?
    Attachments:
    error.JPG ‏42 KB

    Hello,
    It sounds like you have to reinstall the RGT. Have a look at this documentation.
    http://digital.ni.com/public.nsf/allkb/B7F980D169474D568625760E0055D55E
    Eric
    Eric Liauw
    AE Specialist - Automated Test | CLD | CTD
    National Instruments

  • MS Office Report Express VI and Array Problem

    Hello all,
    I have a strange issue with the MS Office Report VI that's included with the Report Generation Toolkit. I created an Excel template which I linked using the "Custom template for Excel" preference and applied all the named ranges. However, two of the named ranges that I am inputting are 1D Arrays of doubles. Now the problem:
    When I input the arrays to their specific name range (it's only 6 values), instead of inputting just the array values into the cells, it inputs like this:
    0    Value
    1    Value
    2    Value
    6    Value
    It pushes the "Value" to the column next to the name range because of the 0-6.
    It does this with both arrays so it screws up all the formulas. Any one know how to remove the 0-6 and just input the values?
    Thanks all 
    Solved!
    Go to Solution.

    Greetings, I wrote a program that generates an array of data and stores a data table, just as a chart, just starting to program, I hope that my program can be useful
    Atom
    Certified LabVIEW Associate Developer
    Attachments:
    write_excel.vi ‏60 KB

  • Print open office report

    Hi,
    I would like to print an Open Office report but I have a problem. I found a prototype of an Open Office that I modified. It is working but I have a problem when I want to print a report. An error occurs
    Error -2146827850 Exception occured in OOCALCVB: L'objet ne gère pas cette propriété ou cette méthode dans MES ODS Print.vi->test vis.vi (The object don't manage this property or this method)
    Is there something I can do to fix it?
    Here is the toolkit and the dll to install to make it work. The Vi is test.vi.
    Thank you
    Attachments:
    Toolkit Proto V1.0.Alpha OpenOffice.zip ‏316 KB
    OOCALCVB.zip ‏355 KB

    Hello,
    Have you tried Highlighting Execution to find out which subVI the error comes from, and then go into that subVI and find out which node is returning that error?
    Kind Regards,
    Mark B
    ===If this fixes your problem, mark as solution!===

  • Save custom file name using MS Office Report Express VI

    When my program creates a report, I want to save it as a serial number defined in the report.  I want to use the MS Office Report Express VI to do this but unfortunately it only allows you to save the file name as a time/date and/or incremental number.
    Solved!
    Go to Solution.

    Hi jliu317,
    While waiting for you to notify the moderator to move your thread, here is my solution. (Correct me if I'm wrong)
    In MS Office Report, there is a block diagram input called Path to Save Report. So this is where you can save your report in Words (.doc) or Excel (.xls) with customized filename such as serial number, as shown below.
    http://zone.ni.com/reference/en-XX/help/370274G-01/lvoffice/ms_office_report/
    Hope this helps.
    -Ee Lim-
    See that button on the left side of this post...
    If you feel my post is helpful, all you need is just (at most) 2 seconds to click that button, to show your appreciation. Thank you~~

  • MS Office report for servo motion controller

    Dear all,
    Good day,
    My application is servo motion controller where I will choose profile from tab deliminated text file.
    Attached VI working fine and I would like to add more features like MS office report where report will be generate after completion of all cycles automatically with data points and graphs. For that I am not sure where to add this function "MS Office report".
    Please help me on this. If you need any further information I'll provide.
    Attachments:
    1-Axis Motion controler_M1.vi ‏151 KB
    5steps test.txt ‏2 KB

    Tried with while loop, and "REPORT" button in front panel as loop condition but not working out well required..

  • MS Office Report Express VI

    Hi,
    I have installed Labview Report Gerneration Tool for Microsoft Office Version 1.1 and now I want to use MS Office Report Express VI but it need the VI "Dflt Data Dir.vi". I don't have this on my computer, why? Where can I get this VI? Can somebody help me?
    thanks Labprog

    I found this vi on my PC in the LabVIEW installation directory under
    \vi.lib\Utility\file.llb. I'm attaching this llb to this posting for
    the case that it is missing for some reason in your LV installation.
    Please copy it to the path mentioned above.
    Best regards,
    Jochen Klier
    National Instruments Germany
    Attachments:
    file.zip ‏333 KB

  • MS Office Report Express VI in a builded application

    Where do I have to put the used Exell template defined in the MS Office Report Express VI in case of a builded (.exe) application ?

    Your right. I apologize. My method is for the non-Express vi's. So with the Express vi's you should have a MS Office Report vi that uses a template. If you right click on this and select properties, a configuration window appears in which there is another window where you can navigate to the path of your template. As stated before, your report template must reside at the same location on the target machine.

  • MS Office Report Express VI - How to programatically use multiple Path to Template

    Good Afternoon,
    I'm testing MS Office Report Express VI and i need to know if it's possible (and how) to programaticaly change "Path to Template" field? I need that in order to change it through front panel.
    Best Regards.

    Hello aj2011,
    Thank you for your post on the National Instruments forum.
    a solution for what you want to do is:
    when you placed your express VI on the diagram, perform a right click on the express VI. From the dialog box choose "open front panel". Choose "convert". then when the front panel of the express VI is open, modify the connector of the VI and put the template path as an input.
    This way you can use the express VI  input path template programmatically.
    Is the solution you were looking for?
    Sincerely
    Romain D.
    Romain DUVAL || Application Engineer Specialist ||Certified LabVIEW Architect (CLA) || Certified TestStand Architect (CTA)
    National Instruments France

Maybe you are looking for

  • Apple Mini DVI to Video Adapter is not working. Please Help...

    I bought an Apple Mini DVI to Video Adapter to connect my Macbook to a TV using normal video cable. When I connect the cable, my Laptop DIsplay gives a flickr once and then it shows nothing. I checked Display in the system preference where I don't ge

  • How to share user login and passwords between blog, forum and Dreamweaver?

    I have a site created with Dreamweaver. I want to allow visitors to create a username and password which will allow them to post blog feedback to many pages on my site, post in a forum, and provide their own comments into a database I can show the re

  • Contacts not syncing & Calendar off by 1 hour

    Specs: 1st generation iPhone running 2.0.1 iMac 2.4 GHz Intel Core 2 Duo running 10.5.4 iTunes 7.7.1 Overview: My phone is not syncing properly and it's causing me to show up to meetings at incorrect times and not have contact information with me on

  • Gamecenter error: connecting to online services on call of duty black ops zombies for iOS.

    So I got this new app 3 months ago called Black ops call of duty : zombies. And I LOVE it!! But every time I try to join an online game, wether it be map vote, single map, 2-4 players, restarting my phone... What happens is it takes me to the gamecen

  • Change to 10.1.3 CustomSerializer

    Hi, i wrote a customserializer for a custom class which extends ArrayList that just delegates the work to org.apache.soap.encoding.soapenc.ArraySerializer. Since changing to JDev 10.1.3 customs serializer must implement oracle.webservices.databinding