Printing report to MS word

i'm building a stand alone application that puts the collected data into Microsoft Word, and it then sends the word report to the printer when click Print from my LabVIEW.  But when click Print it runs and generates error message that says "Error 7 occured at Open VI Reference in Dispose Report.vi ->Word Report.vi ->Main.vi".  I think i'm missing something during building application stage but i'm not sure what it is.  How can i approach this error?

Hi locman,
This error happens when the Report Generation Toolkit's dynamic VIs are not included during the build process. There are two great knowledge-base articles that deal with this error 7 and using the Report Generation toolkit in word and excel. The first one  Please take a look at it and let us know if you have any other questions. I hope this helps!
Carla
National Instruments
Applications Engineer

Similar Messages

  • What are needed to have labview print report to microsoft word

    i'm building a stand alone application that puts the collected data into Microsoft Word, and it then sends the word report to the printer when click Print from my LabVIEW.  But when click Print it runs and generates error message that says "Error 7 occured at Open VI Reference in Dispose Report.vi ->Word Report.vi ->Main.vi".  I think i'm missing something during building application stage but i'm not sure what it is.  How can i approach this error?

    In the cd with the report generation toolkit you can find the procedure for building an executable.
    You have to add the following vi's dinamically:
    - vi.lib\addons\_office\_exclsub.llb\_excel dynamic vis.vi
    - vi.lib\addons\_office\_wordsub.llb\_word dynamic vis.vi
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL

  • Print report in Thai and English Characters

    Hi ,
    I able to enter Thai characters from front end but at backend(database) it looks like this '¿¿¿' .someone has any idea why is it so?
    Also, I am using some logic to print amount in words in oracle report builder 6i.Our client requirement is to print these amount in words in Thai Characters..Please share your thoughts!
    Thanks,
    Neha

    Don't worry about backend.  Change your report builder field as specified font.  Report builder automatically converts these special charactors into to actual font you specified.  Then you can take output from your report builder.

  • XML PO PRINT REPORT for different Operating Units

    Hi all,
    We are stuck at a point, hope someone helps us out.
    Requirement : We need to generate PO print report in pdf format for US and Mexico , both having different layout.
    Things done : We customized standard PO Print report to fetch XML output from it, and attached rtf(developed) to it.
    Things working fine : For US , report is perfectly fine and looks good.
    Issue : We need to generate for Mexico as well with different format.
    We have value in xml tags which can distinguish between US and Mexico OU's and we can simple use if else condition in the template itself .
    Here limitation is we have made MS word header as the PO header so we are not able to create different header for Mexico in the same rtf.
    We dont want to complicate the rtf much with more loops by removing it from Header and then page break and all.
    Can someone suggest something like use one rtf which handles both the format OR two different rtf registered for same concurrent program and which are called on the base OU.
    We are totally fine if we can do something while registering to Apps.
    Please let me know if any one wants more information.
    Hoping for a positive reply.
    Thanks in advance.

    Hi Vishal,
    Assuming you are using R12+, you can have seperate templates used for differrent OUs. In the PO Approval workflow it shall pick the respective template.
    During submission of concurrent program "PO Output for Communication", you can specify the right template in the input parameters.
    Regards,
    G V Ranjith

  • Alright, what am I missing? Print Report

    Troubleshooting a printer problem today, I had occasion to open the front panel of "Print Report.vi" (report generation toolkit).  There's nothing there!  Both the "error" and "no error" cases just pass the report ref through without operating on it, calling a DLL, etc.   So....how does it get the data to the printer?
    Solved!
    Go to Solution.

    It's part of a LVOOP class.  You're looking at the VI for the parent class, but the wire will always carry a child class (HTML, Word, Excel, etc).  The Print Report member of the child class is the one that will be executed - overriding the parent - and it contains the actual code.

  • Print Report using ASCII command through printer selection available on windows

    Hi,
    I'm using Labview 2009 to create a report using Report Generation Toolkit.
    Creating a report is not the problem, the problem is I need to print the report manually by sending an ASCII Code.
    I noticed that there are few example on send ASCII code command, but neither of them are related to printing.
    The printer I use is Panasonic dot matrix printer KX-P1121E with USB port. (Fanfold type of paper)
    I used "NI_report_lvclass: Print report.vi" from Report Generation before this to print my report, everything is okay and not receiving any error.
    But I noticed that after finish printing, the paper will automatically feed out as if that VI (Print report.vi) is sending out "Form Feed" (FF) Command to the printer. 
    My application cannot use this method because I need to print a set of data in every minute. If the data only have 2 rows, then it will be a wasting a lot of paper if everytime finished printing paper feeding out. I want the printer to continue standby on the same paper after finished printing previous data. In other words, maybe just manually send "Line Feed or Carriage Return" to the printer.
    So I have a few things need to be clarified step by step;
    1. How can I send an ASCII Code to my printer? Do you have any example for this? link below is the character of ASCII Codes that can be use :http://webpages.charter.net/dperr/links/esc_p83.ht​m
    2. Can I send a report created by report generation to be printed using this ASCII command method?
    3. If my printer is setup by using windows (Meaning: Available on "Printer and Faxes" list), How can I configure the printer setup in sending the ASCII Code? 
    Really appreciated your reply
    Thanks!

    Hi Zwired1,
    Just to make sure I fully understand the situation - I am assuming since you say you are printing to two different printers that when you are using the Print Report.vi you are using the printer name string to specify which printer you would like to print on. And if the printer that you specify is not functioning it automatically prints on the other printer, is that correct?
    From looking at the code in the Print Report.vi, it looks like if you specify a printer name in the input string, if there is a problem with that printer or if that printer is unavailable, the VI should not print anything, so please let me know if that is not the behavior you are seeing.
    For your question about checking the health of printers, there is a VI in the report gen toolkit called Query Available Printers. You can find it if you open up the Print Report.vi and choose the Standard Report instance, the Query Available Printers.vi is on the block diagram of that VI. It will return the list of available printers and the default printer.
    I hope that helps,

  • Error in Print Report.vi

    I get "Unknown Error in Print Report.vi", error code -2147352567 when I run Text Report Example.vi in LabVIEW 6.1. My own code that ran OK in LabVIEW 6.0.2 also produces this same result in V6.1. I have not changed printers. Help.

    Hi.
    I don't have exact solution for your problem, but it is very familiar to what I experienced.
    I install 6.1 and Report Generation toolkit included with new package. I had all my programs written in 6.0.2 with Report Generation from version 1.0.
    Almost every other VI from Report Generation did not work after I recompiled my VI into Labview 6.1. I spent several days trying to understand what is going on, made several calls to NI tech support, but nobody could help me. Finally I found solution:
    Uninstall New Report Generation toolkit Version 1.0a included into latest package of Labview 6.1 and install the very first version (I have it distributed as separate CD).
    After such maneuver everything works fine.
    I had another problem with this tool and especially Pri
    nt report.vi:
    I have PDS package, and Print report.vi works excellent on my computer printing Standard Report. However when I create stand-alone application and distribute it together with run-time engine on user computers, it gives me error and I can only print creating Excel or Word type of report.
    So, that is my experience. I think NI still has several bugs to work on. And if you find any other solutions, please let me know.
    Good luck.

  • Check print report PaymentAmountText field gets spaces while using RPAD Fn

    Hi,
    In the check print report we are using the PaymentAmountText field to print the amount in text.
    After printing the remaining spaces should be filled with '*'
    I used the below command
    <?xdofx:rpad(PaymentAmountText,100,'*')?>
    But the output is as follows:
    Twenty-Five       Pounds    And      Fifty     Pence
    Only***********************************************
    There is a huge space between two words.
    So please suggest some ideas to remove the space between two words.

    There is a huge space between two words.
    So please suggest some ideas to remove the space between two words.
    you can use normalize-space(tag_name) like
    Result - <xsl:value-of select="normalize-space('Initial     werwe rrr r     r')"/>
    and result as
    Result - Initial werwe rrr r r
    also look at Re: Problem with Rpadding in RTF

  • BO XI R2 - "Blank "Crystal Reports Viewer" window - attempt to print report

    My company recently set up a Business Object Enterprise XI Release 2 server.  On the server are a number of crystal reports that are run interactively by users, through the user console.  The expectation is that the user will log on to the BI server, click on the report title, enter the parameters, see a preview of the report in the Crystal Report Viewer, then click the print icon on the Crystal Report Viewer toolbar.
    Our corporate standard is current Windows XP SP3, with Internet Explorer 8;  By default, users are set up to use the DHTML report viewer.  The reports were developed with the Crystal Reports XI R2 report designer, and connect to an Oracle 10g database through Oracle client.
    When users attempt to view, then print the reports, the user is able to select the report, enter the parameters, view the report data, and even page through the report preview with no issues.  However, when the user attempts to print the report by clicking the print icon on the Crystal Reports Viewer toolbar, a blank "Crystal Reports Viewer" window pops up and remains indefinitely.
    The really puzzling thing about this issue is that for about 1/3 of our users, printing will work - a print dialog will appear, allowing the user to select a printer, and when the user clicks OK, the report will print.   For the other 2/3 of our users, the blank "Crystal Reports Viewer" window pops up.
    I have added the BO XI R2 server's address to trusted sites, adopted the lowest security settings for trusted sites, and enabled all activity I could think of in IE security settings (ActiveX controls-related).  I also ran the web site in compatibilitiy mode.
    Has anyone on this forum experienced this issue, and does anyone here know how to resolve it?
    Thank you,
    Bob Gardner

    I suspect that this behavior occurs because the client computer is unable to download ActiveX controls.
    The report viewer requires the PrintControl.dll to print reports from the client computer. The PrintControl.dll downloads automatically if it has not been previously downloaded on to the client computer, provided that the user that is currently logged on is able to download ActiveX controls.
    To enable the download of ActiveX controls on the client computer, perform the following steps:
    1) Open your Internet Explorer.
    2) From the Tools menu, select Internet Options.
    3) In the Security tab, select the web content zone that corresponds to your web application.
    4) Click Custom Level.
    5) In the Security Settings dialog box, scroll down to find the ActiveX controls and plug-ins section.
    6) Select Enable or Prompt for the Download signed ActiveX controls item.
    7) The print dialog box will now appear successfully when clicking the print button in the report viewer.
    If the above does not help, try to troubleshoot this as follows:
    1) click the print button (this will cause a postback to the web page) and then cancel the print dialog. right-click in the web page and select "View Source".
    2) Search for the word "printcontrol.cab". This will show you where the application is trying to download the printcontrol from.
    Paste the URL into a browser.
    3) If you get prompted to "open or save to disk" the url is correct and there is a browser setting or possibly even a system policy preventing the download.
    4) If you get a "404 page not found" or a similar error message, investigate the URL.
    5) If the issue is on your local web server, see if it is possible to browse to the URL in IIS manager.
    - Ludek

  • Why "Print Report" print two copys of raport?

    Hello
    I have a problem. When I use "Print Report.vi" to print Word report generated before I get two copys, but I set one copy in the setup. Is ther any solution to my problem??
    Thanks for replays.
    PS.Sorry for my english.

    It works fine for me.  I am wondering if you could post an example? 
    Some things to check would include: are you sure that there is only one print VI?  Are you sure that the number of copies is set to one?  Do other things printed from Word produce two copies on that machine?  Do other things printed from LabVIEW print two copies?
    Just a few things to check (I assume you have already done some of them on your own ).
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Report Viewer 2012 Word Render Margin Problem‏

    Hi all,
    I am developing a asp.net web application /w visual studio 2012. I have created some reports with report viewer, and I would like to export those reports to pdf and MS Word format. The pdf output is same as I expected, but the word output is
    missing top and bottom margin, it leads we cannot print the header and footer correctly in MS Word, also the repeat header on each page property didn't work too.
    If I use report builder 3.0 and try to export the reports to pdf and MS Word format, the problem still exists.
    Is anyone has the solution for this issue?
    I think its related to sql server reporting services, please let me know if I posted at wrong category.
    Thanks,
    hk

    Hi hkcheung,
    According to your description, you have issues when exporting the report into Microsoft Word file. The margin of header and footer can't be displayed. And the RepeatOnNewPage property is not working. Right?
    In Reporting Services, when we export the report into Word file, it will ignore page header and footer height settings. Also Word does not repeat header rows on page two and greater, although you set the
    RepeatOnNewPage property of the static header row in a tablix (table, matrix, or list) to
    True. For more information, please see the limitations in the link below:
    Exporting to Microsoft Word (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Please suggest practice to generate/print reports?

    Hi,
    I don't know whether here is the right place posting my question. But I find it is related...
    I want to write an application which can print out Reports. However, I need good control of the alignment / position of the text when printed because it will be printed on pre-printed forms.
    From Java, can I fill in data and generate & open a PDF and/or Word document, which then I can print it out nicely?
    Or, anybody here has good practice to generate/print reports?
    thanks in advance,
    jackling

    You can use the iText library to generate pdfs.
    http://www.lowagie.com/iText/download.html
    Or one of the numerous open source reporting tools such as JasperReports http://jasperreports.sourceforge.net/

  • HOW TO STOP MY DESKJET F2180 FROM PRINTING PRINT REPORT AFTER EVERY PRINTING.

    good day,
    i have this problem about my deskjet F2180 everytime i print documents after every printing  it also prints reports
    regarding location of the file, time, last made etc etc.. it's so fruastrating because it's a waste of paper.if i print 100 copies 5 pages documents it also prints 100 print reports.
    please help how to reconfigure or fix this one
    thank you and godbless

    Hi
    that sounds like a word (office) issue, it an option that word gives your, check HERE to turn it off.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • Cancelled POs not appearing in isupplier PO Print Report

    Hi All,
    I am using oracle apps 11.5.10 version.My problem is that PO print report is not printing all the cancelled Purchase Orders.Its printing only the last Purchase Order which is cancelled.
    Steps to reproduce-
    1. create a multi line req in iproc..submit and on approval PO gets created.
    2.from isupplier run Printed PO report.You will see all the lines.
    3. Cancel 1st line in iproc-let it revision.run report from isupplier.You'll see all the lines along with one line that is cancelled.
    4.Cancel 2nd lines in iproc.let it revision.run report from isupplier.You will see all the lines and the new cancelled line as well.But the Cancelled line1 will not be seen.
    5.Again cancel 3rd line.When you print PO in isupplier.You will see all lines+3rd cancelled line.But the above two cancelled Lines 1 and 2 will b missing.
    Note- we have modifed the xslfo and po_lines_xml for some other changes.I have reverted the changes made in po_lines_xml but still facing the same issue.
    Please help.

    Hi,
    Please check in transaction  SXMB_MONI can found related information why it not transfer to SRM.
    Also check the purchasing data of the PO.
    Thanks,
    prasad.s

  • Report Generation Toolkit V9.0.0 : Print Report.vi doesnt print

    Hi,
    i have migrated my Labview 8.5 Project with Report Generation Toolkit V1.1.2 to a Labview 2009 System with Report Generation Toolkit V9.0.0.
    In this Project I use the Report Generation Toolkit for printing out a Standard Report with e few Tables and Graphs.
    Now the VI Print Report.vi delivers the Error -41002 with the Text "Invalide Printer Name". I have, of course installed the propper Printer on the machine.
    I don´t connect a string to the "Printer name" input of the VI, because i want to use the default printer.
    In my oppinion, there´s  a bug in the Print Report.vi: if you don´t wire the "Printer name" input, the vi should use the default printer, but in this case the vi connects the empty input string to the input of the method node it calls.
    I fixed this bug, but the method node still returns the same error.
    any ideas?
    Thanks!
    Solved!
    Go to Solution.

    Thank you for the link!
    For some reasons i can´t find this specific article in the knowledge base (my browser is always rerouted to the german version of ni.com, because i am in Austria). I tried to search with the exact title of this article, and the error message string, but no results...
    I have also installed Labview 8.5 and the "old" Toolkits on my new computer in addition to Labview 2009 and the "new" Toolkits and tested my program in 8.5. Here i got an error mentioning the margins and i had to change the margin settings for printing out, then in worked.
    After reading the article, i have applied the same changes for the margins in the 2009-version of my program and it works too!
    Problem solved!
    Thank you very much!
    PS:
    I first wrote, that there´s maybe a bug in the new version of the Print Report.vi, but i´ve compared it with the old version and it seems to be no bug, sorry!
    After all I decided to stay with Labview 8.5 for now, because of another problem:
    it´s not possible to "save for previous version" from LV2009 to LV8.5 directly.
    Laview crashes, when a VI contains an event structure as i found out by searching through the "known issues", and i have a lot of VIs with event structures!
    I have to have the possibility to save my Labview projects for 8.0 and 8.5. The only way is to save for 8.6 and then save from 8.6 to 8.5.
    That´s nasty and time-consuming!
    Maybe a future update will solve this problem (without producing new ones)

Maybe you are looking for

  • Windows Vista Ipod Nano drivers??

    When I connect my iPod nano 4gb to my new laptop, with iTunes 7 installed, it tells me it needs to install drivers and insert CD...but I dont have the CD! Can anyone give me a link for these drivers at all, or give me adivice on how to get around thi

  • How to set up a new plant in SRM and user that?

    Hello I have run the reoprt BBP_LOCATIONS_GET_SELECTED I am getting a message Program end reached the apprlication Log.BBP_GET_LOCATIONS generated.(SLG1) When I go to BP and find my BP for the plant is generated. but when I go to the attributes tab f

  • I can get my files to download to my hard drive.  I hit the download button and nothing happens

    I Can't get my file to download to my hard drive.  I hit the download button and nothing happens

  • Problems while sending/receiving IDOCs

    Hi,     I am trying to store IDOC data to MS access database. I created a scenario and able to activate that successfully, but after sending IDOC from SAP, in SXMB_MONI I can see status as "Message Processed succesfully" flag, and acknowledgement sta

  • Cannot export from QT to FLV

    I am on a Mac running OS X 10.4.8, Flash MX 2004 Professional and QuickTime Player 7.1.3 Professional. I want to take a .mov file that I've gotten from a client, and export it as a .flv file. However, in QT, when I select "Export...", there are no se