Print in report generation

Dear all,
I am using Report Generation Toolkit to create a report of my project.
I am using "Word" type Report and want the VI to print it after creating the report.
However i dont want it to open the MS Word and just want it to print it right away.
I am using alot of VIs specific to MS Word.
Is there any way i can print the report without opeing MS Word??
Thanks,
Ritesh

Hi Ritesh,
I don't think you can use the 'Word' type report VI's without opening Word itself, but what you certainly can do is to open Word and have it either minimised or hidden so the operator doesn't see the window. Then you can get your VI to automatically print the report and close Word down once the operation is completed.
Regards,
Andy

Similar Messages

  • Can't print to Epson TM-U590 Slip Printer from Report Generation Toolkit with LabVIEW 8.6.1

    Hi all,
    I have an application that uses the Report Generation Toolkit to print tickets to a docket printer.  Usually this works fine - I have 8 existing installations where there are no problems
    I'm currently installing the software at a new site that uses an Epson TM-U590 slip printer and I can't for the life of me get printing to work
    Using a Standard Report, the Print Report.vi returns error -41002 which indicates it can't find the printer.  I've opened up the VI using remote debugging and it does find the printer name correctly with the Query Available Printers.vi.  It gets an error code -2147352567 from the Printout node, which then gets replaced with the -41002 error which is reported.
    For historical reasons I'm still using LabVIEW 8.6.1 for this project.  I'm considering moving to 2011 or 2012 but I've had reliability issues with other parts of the application after attempting to update to a newer LabVIEW version so I'd like to avoid that at this stage.
    The application is running on a standard desktop PC with Windows 7.  The slip printer works fine if I print to it from Notepad, and my application is happy to print to any other printer, just not the slip printer.
    The slip printer is using the LPT port.  Previously the docket printers I've used have been USB but I would expect the printer driver to hide this detail from the application...
    Any ideas would be much appreciated
    Cheers
    Brett
    Senior Software Development Engineer
    Certified LabVIEW Architect and LabVIEW Champion
    Solved!
    Go to Solution.

    I've managed to sort out the problem, thanks to this KB article: http://digital.ni.com/public.nsf/allkb/67D60209102E2161862568AC0074BF64
    I'm now having the same issue with a Star docket printer (a TUP592), this time with another program developed in LabVIEW 2011.
    As mentioned in the article, the problem is actually to do with the margin settings rather than the printer name, despite what the error message says
    After some experimentation, I've gotten the Star printer to work by setting a large (>14cm) right margin.  No idea why this is required as it seems to print right up to the right edge of the paper quite happily, but there you go.
    So I haven't defintely fixed the original problem yet as I haven't gotten back to the site, but hopefully this will be of some help to someone else.
    Cheers
    Brett
    Senior Software Development Engineer
    Certified LabVIEW Architect and LabVIEW Champion

  • Report generation with excel (picture)

    hello,
    I need to insert pictures into excel. I have already printed the report generation toolkit for microsoft office and downloaded Picture_To_XL_(6i). But I have nothing to do the report : for in instance write jpeg file (excel).vi,read jpeg file (excel).vi, read png file(excel).vi...
    Where can I finf this ? I have 3 Cds with labview:Labview 7 express, national instruments device drivers and DIAdem.
    I have download an install update bur does not work.
    How can I do?
    thank you to help me
    labview 7.0

    You can get an excelent Excel Active-X control from the gentleman at the following e-mail address:
    [email protected]
    Also, I have included a PDF description of the item. It is for sale, but it is CHEAP, and well worth the low asking price.
    Attachments:
    excelocx.pdf ‏248 KB

  • 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)

  • Report generation tool kit not printing

    I had the report generation tool kit version 1.01 for some time but never used it. I was comfortable with printing front panel vi 's.
    But now I installed it on my computer with a windows 2000 and LabView 6.02 .
    I created an application (executable) that will print (using the report
    genartion tool kit). The application works fine in my development computer
    (win 2000).
    When I installed it on another computer with a win 2000, it prints as
    expected
    but when I try to exit I get a message from windows that the application is not responding (I have to go to task manager and terminate the application).
    Both computers have word and Excell installed
    I installed the application on a third computer (win 2000), but this com
    puter does not have word or excell installed. The application does not print the
    portion of the software that uses the report generation tool kit, but it can print the front panel of vi's (set to print an end of excution).
    In all 3 computers, I have runtime engine 6.02 installed. My vi is simply
    the example vi ""Sample test report.vi"", but customized to my application, printing standard report.
    What is happening ?

    Based on what you sent, the version of Excel and Windows that are being used is a non issue since none of the code makes any calls to either one. They all refer to the older version of the report generation VIs that use NI's proprietary report generator.
    I can think of two explainations. First, you aren't using what you think you are. Second, NI retained the same VI names when they went to the Word/Excel version of the generator, and I am linked into the old version.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Report Generation Toolkit - Prints data from a previous report in Word

    I am running an executable from the "system exec.vi" created with Labview 6.1. I am using the Report Generation toolkit vi's to create a report in Word that prints simple Title with test header and then appends a Table with measurement data. The problem is the measurement data in the table is from a previously printed report. This problem only exists when I Run the Report.exe from the "System Exec.vi". If I manually start the Report.exe in Windows or open in the Windows Commandline the correct data measurement data is printed in the report table. Any suggestions are appreciated. Thank You

    Hi,
    So far I havent been able to reproduce this on my computer. Could you post your code so that I can try and reproduce this issue?
    Feroz P
    National Instruments

  • Report Generation Toolkit, Print Excel Report, LabVIEW Crash

    Hello,
    when printing a report generated with the report generation toolkit for excel my build application crashes on our customers PC.
    When I run this application on my PC it works fine.
    The problem is the active X invoke node that trys to print the report but i cant get any error messages to find out where to locate the problem.
    Maybe that there is a problem with the active X node or the Excel Version on the customers PC?
    I use LabVIEW 2010 and Excel 2007 the customer has Excel 2003 SP 3.
    I changed the report to generate it in Word where the Print_Report.vi fine on both PCs. But in Word Report there is called another active X invoke node to print the Report. So it seems for me that there really is a problem with the Print in Excel active X invoke node.
    Mybe someon can help me in finding out whats the problem.
    Greetings Daniel.
    Solved!
    Go to Solution.

    Hi Daniel,
    your behavior has been reported by others. For example:
    Application Build Failure on Excel.Print Report call
    http://forums.ni.com/t5/LabVIEW/Application-Build-Failure-on-Excel-Print-Report-call/m-p/1563242
    Problem posted: 05-17-2011 02:19 PM
    Workaround posted: 06-01-2011 and later
    So their workaround was to use Excel 2007 or 2010 instead of 2003. Is this working for your customer?
    Best Regards,
    Jan

  • Report Generation Toolkit Print HTML Problem

    Hi,
    i have a problem printing a html Page at a Costumers PC with the Report Generation Toolkit.
    I use LV 2012 and the Report Generation Toolkit in 32Bit Mode.
    The Target is a Win7 64Bit Machine with IE10 of our Customer with very strong security rules.
    Our Programm generates a HTML Repor which is saved without any problem.
    When i then try to print it with Print Report.vi it doesent work and i get error1 out of the SubVi NI_ReportGenerationCore.lvlibrint HTML Report using IE.vi.
    This Sub.vi simply cant open the HTML Page with the IE.
    I think its the costumers Security Rules that cause the Problem.
    I saw a very strange behavior of the IE.
    When i double click the .html file the IE gets opened and displays the file properly.
    When i then hit the reload button it also gets reloaded.
    When i click in the browsers adress bar and hit enter (Which normaly does a reload) i get an error "Adress Bar, Adresse, access denied".
    And i think that happens in the Sub.vi.
    I talked to some friends an they sad it could be that double clicking and reloding is done with the local user an the clicking and hitting enter reload is maybe the systemuser.
    So i asume that the Sub.vi is also using the systemuser.
    How can i determin which user is used to execute a vi?
    Can i influence the user?
    Has anybody a solution and seen this problem?
    Regards,
    westgate

    If I understand your situation correctly, you are able to use the LabVIEW Report Generation Toolkit to create an HTML report, which you save as an HTML file.  Can you open it in a browser and print it using the browser's Print button?  I've use LabVIEW to generate HTML reports, but have never tried to print the Reports in LabVIEW -- I've always used the "browser route", myself.

  • How can I select pages to print from a Word document using the report generation 'print report' vi?

    I have researched the knowledge base and found:
    Printing A Range of Pages or Number of Copies of a Report Using the Report Generation Toolkit in LabVIEW.
    This seems to be from a previous version of LV. I am using LV2010. The instructions given do not match up with the current vi. The information did provide a tip and drilling down into  the vi I was able to insert the from/to page numbers at the printout invoke method, however this prevents the print function from working in that it can no longer find the default printer.
    The error message is:
    Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclassrint Report.vi ->
    error 1015 is: Printer is not responding. Check printer configuration.
    Any ideas how I can make the modification to print, for example, pages 24 through 29 out of a 32 page word document?
    Thanks,
    Chris

    Hello, take a look at this article. Unfortunately the Generate Report Get Data to Modify.vi was remove since RGT 1.1.3 release. That being said, we can try to find a workaround. See "Configuring a Printer Through the Windows Dialog in LabVIEW", open the GetPrinterSettings.vi, at the PrinterSettings property node you can select the from/to page. I hope this helps.
    Alejandro | Academic Program Engineer | National Instruments

  • Print number of pages with Report Generation toolkit

    I use the report generation toolkit and the Print Report.vi to print a table and some text extracted from a MS Access database. The result of this is a print out that takes up several pages.
    Now, on each page i want something like (Page x of y), and I do not want to buy more expensive NI packages for this simple thing. I know it should be possible since the Report Express vi can do it --- which for me is a useless vi.
    I do not consider it a nice solution to try and keep track of the number of pages myself by dividing the table into more tables and use the new page vi between each "page table". This I would not like to do since depending on paper size, font size, and length of text strings in each cell this will be virtually impossible.
    By moving into the Print Report.vi I've tried to see if I somehow can extract the info --- I've not found anything usefull but expect a workaround to possible.
    Any suggestions?
    Cheers,
    Martin

    Hi Skinny,
    There are some tokens you can use in the headers and footers of Standard Reports generated by the Report Generation VIs.  If you take a look at [LabVIEW]\examples\reports\TextReportExample.llb\Text Report Example.vi, you'll see that the right footer text of the report has the token <pagenofm>, which generates a footer of the form "1 of 10", to indicate page 1 out of 10 pages.  There's also another tag you can use, <page>, that just lists the page number itself without a total number of pages.  If you look at the help for the Set Report Header Text.vi or Set Report Footer Text.vi, you'll see a link in the help for all the different "tokens" you can use with the report header and footer.  Actually, now that I think about it, you can use these tokens anywhere in the report, including the body text.
    Good luck,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Problem with "stretching" when using report generation vi's to print fron panel.

    I am using LabVIEW 6.0.1 and when I use the "Append Front Panel Image to Report" vi to print my fron panel, the result is an elongated (stretched)version of my front panel that runs off the page and doesn't show some of the content. Does anyone know why this happens?

    Hello,
    I have never heard of this problem before. My first suggestion for you is to install the LabVIEW 6.0.2 update, as there were some fixes included in this update regarding printing from LabVIEW. Also, have you tried printing the report to a different printer, to see if the problem is inherent to the subVI or inherent to your printer?
    If you are continuing to have any problems, please let me know, and if possible, attach an example VI to your reply that demonstrates the behavior so I can reproduce it.
    Thanks for your patience on this issue, and have a pleasant day.
    Sincerely,
    Darren Nattinger
    Applications Engineer
    National Instruments
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Report Generation task error

    I'm using report generation VI's to generate my report (standard report). If I make an application at my development PC (LV 6.0.2 Win-NT 4.0 SP6; application builder 6) and start the EXE-file, there are no problems. I transfer the software (installer) to the target PC (Win-NT 4.0 SP6; run time engine 6.0.2) and start the print subroutine in my program. When I leave the application I have still the LV-Task in the Win-NT task list. I have to start the task manager to stop it. It happens only if I use the print subroutine ( with the report generation VI's) in my program. I made a test with the same subroutine but switched to html output, the task list is emty after leaving the program. Do you have any idea?

    try re-compiling the report generation vi's (ctrl+alt+run button) then re-create your exe.

  • Print HTML Report.vi doesn't scale properly.

    LV 8.5.1, Report Generation Toolkit, XP.  Our application uses the Print HTML Report.vi to print an HTML report.
    We found that on some installations the resulting page does not scale properly.  Instead of being one page wide,
    the printout is about 1.5 pages wide (and proportionately longer), leading to our report being truncated.
    Tried different printers, different print drivers, no difference.
    Finally we noticed that the affected computers all had Internet Explorer 6 installed.  Updating to Internet
    Explorer 7 fixed the problem.  Don't know about IE8, I expect that will work as well.
    Hopefully this will help someone else who runs across this problem.  I couldn't find any reference to
    an IE > 6 dependency in the Report Generation Toolkit readme system requirement.
    Matt

    Hi Charlie,
    The layout option is not wired to anything in the Standard, HTML, Excel and Word Report, but it is used in the Quick Print default case.  The Help document for this VI mentions that the layout option is ignored on Standard and HTML Reports but does not mention the Excel or Word Reports.
    This was discovered a little while ago in this discussion forum.  And a report has be filed to R&D by Ben.
    Justin Parker
    National Instruments
    Product Support Engineer

  • Report Generation & image

    Hello,
    I have been using Report Generation VIs to print Control/Indicator (Front Panel)icons on Word Document.  The only issue is that it is so white that it blends with the background (example attachment below). Any suggestions.
    Also, how can I use Report Generation VIs to print items (i.e. case structure and the items within it) from Block Diagram into Word Doc.
    Thanks.
    Attachments:
    DocumentPicture.doc ‏24 KB

    To answer your second question about inserting a Block Diagram image into your report, one way to do it would be to use a VI Invoke Node with the method Block Diagram >> Get Image Scaled to output Image Data for your Block Diagram (or whatever VI's Block Diagram you wire the VI refnum in for). Then use Draw Flattened Pixmap to change the Image Data format into a picture format that you can wire to a picture control. Then create a reference for this picture control and wire it into the Report Generation Toolkit VI called Append Control Image to Report. That will accomplish what you want.
    I'll attach an example below, but unfortunately I only have the Report Generation Toolkit installed for LabVIEW 8 right now. I'll also paste the image below so you can get an idea of what I'm doing.
    Message Edited by Jarrod S. on 04-14-2006 01:27 PM
    Jarrod S.
    National Instruments
    Attachments:
    ReportGenBD_Example.vi ‏20 KB
    Screenshot.JPG ‏57 KB

  • Report Generation Toolkit and Office 10 - build errors

    Using LabView 2011 and Report Generation Toolkit 2011.
    After installing Office 10, I would get build error for Excel-Print.Vi and Excel-SetCell.vi and build is then aborted.
    2011/vi.lib/addons/_office/_excelsub.llb/Excel-Print.vi.
    Says it is unable to save a vi without a block diagram.
    Uninstalled Office 10 and reinstalled Office 2003 and build went thru just fine.
    I can program using Excel 2003 and the compiled executable will work on another computer with Excel 2011 but once I install Office 10 on my LabVIEW computer I cannot build.
    Can't believe I could be the only one to experience this. Any workarounds?

    Duplicate Post

Maybe you are looking for

  • OS 10.4.6 UPGRADE!!!BAD!!!

    The OS 10.4.6 upgrade has fouled my Magic Bullet Color correction AE style plug-ins. It will no longer load them into FCP 5.0.4. The Magic Bullet Creative Cow Forum has a number of people flipping out over this same problem. It seems any AE style plu

  • Default name from header, if present

    The default document name comes from the first few words of the first page. If the document has a header before it get saved, examine the header: if it has anything that is not a field (e.g. Page Number), then use that as the default name. Cheers

  • How to enter TEXT data using rules files

    Hi, How can i enter text data using rules files? Thanks, A

  • What does the master do if it enters DB_EVENT_REP_PERM_FAILED?

    I want to know the bdb master's behavior when getting "DB_EVENT_REP_PERM_FAILED". Does it flush all pervious txns or only the one being committed?

  • Adobe Captivate 5 hangs when launched...

    I downloaded the trial of Captivate 5, and when I double click the icon to launch it, it just hangs and says "Loading..." but never loads, eventually I click on the Captivate logo, and an error box comes up stating the program must close.   I am usin