Open & print an existing HTML report

I want to open a previously created, saved & closed HTML report for printing.  I don't see any thing in the Report Generation vi group for opening existing reports and wasn't sure how to go about it (if at all possible) using the standard file open options to get to a report.  Any ideas?  Thanks.

Hello,
To print and view an HTML report you have already saved to disk, just create a new report, and use the "Append User Formatted HTML to Report.vi" to append the entire HTML content of the report to a new report.  Then use the "Print Report.vi" and "Open HTML Report in Browser.vi" to print and view it.  This is the easiest way I can think of...here is a screenshot showing what I mean:
Hope this helps,
-D
Message Edited by Darren on 04-18-2006 01:31 PM
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Attachments:
print_and_save_report.jpg ‏84 KB

Similar Messages

  • Printer Setup for HTML reports (Landscape)

    I'm trying to print an HTML report in Landscape, the Report Orientation VI only works with Standard Reports, and I can't find anything that will let me modify the "Printer Setup"
    Anyone done this?

    Jeff,
    To print an HTML report it first has to be rendered. To render HTML, you need a browser. For example, you can render HTML in either Internet Explorer or Firefox or Opera, and all three might render the same data slightly differently. To simplify the situation let's say that you're using IE. Once IE renders the HTML, you then have to get it to send the rendered output to the printer. So you can see why it isn't time or cost-effective for NI to try and necessarily support these functions. For the end user however, I'd guess that quite a few people have had this problem.
    I have had to do a lot of digging around to get HTML reports to print right. My solution has been to use an ActiveX container with an IWebBrowser2 object (Internet Explorer). This will let you load and print HTML reports programatically however (glancing back over some old code) I don't see immediately how you can print a report in Landscape. With an ActiveX container however you can call the IE print preview function which will let you (the user) modify the report printing to Landscape. It's not a programmatic solution since you have to interact with the GUI but it works. Also, once you set the setting to Landscape, everything printed afterwards using your ActiveX container will also print in Landscape.
    Something else which may not apply to you (but maybe--I'll at least mention it) is printing a landscape single image... that's usually why I needed to print landscape... to print out a full page screenshot of a graph or something. I do this in portrait mode by just attaching the control image but rotating it first and adding the HTML code to make it 100% of the vertical page.
    Last but not least, if you are 100% set on using a programmatic implementation to print a landscaped report (no user interaction), the best thing to do would be to build on an ActiveX implementation so that your report is being loaded and printed from an embedded IWebBrowser2 object. With the IWebBrowser2 object there is an option for using a pre-defined print template. This option is NOT for the faint of heart and requires you basically to re-program the whole IE print-preview functionality. However, it's not impossible either, it just takes the time of learning basically how the IE print preview interface works and then adapting it to your application (in this case, landscaped printouts). This is also the ONLY way to change HTML report headers and footers. The print preview interface in IE is written entirely in javascript--you can get details on msdn (search for "print preview templates"). However, there isn't really enough info there to do things with any ease. So....
    If you get to the point where you get an ActiveX container working and want to fool with the IE print preview javascript templates, let me know. I have extracted the entire template and associated images from the windows DLL it is stored in so I could adapt it and change the headers and footers for my reports and things of that nature.
    Now that I mention it, I believe that is the only way also to actually set landscape or portrait--by programmatically changing the printing margins (so it prints 11x8.5 instead of vice versa).
    Anyway, hope that helps...

  • Apply a border to the chart in HTML report

    Hi,
    I am generating an html report as the final output for my LV program. I have a few graphs that i have added to the report using the append control image to report tool. I have set the image on the control panel to be transperent so that it is printer friendly when i print out the html report. Everything works fine but there is no border around the axis, i.e. there is no solid line that defines x axis and y axis for the graphs. Is there is a property tool that can be used to set this?
    Thanks

    I have used this trick alot. One thing that I found is that if you make the color inside the graph white instead of transparent you will get the results that you are looking for. I usually make the outside of my graph transparent and the inside of my graph white and it looks good.
    Hope this helps
    Joe
    Joe.
    "NOTHING IS EVER EASY"

  • Print HTML Report Automatica​lly after Each UUT

    Hello
    I saw the document on NI site called "Print HTML Report Automatically after Each UUT". That's exactly what I want to do with XML files. So I put it in my sequence file and it works fine, but when it opens the xml file at the first step, there's a pop-up from IE who say that "Scripts are generally safe, do you want to authorise this script" (This message is also displayed when I open my file in files explorer).
    So, the print is not automatically anymore as I must answer to this pop-up. does anybody has a solution to bypass this pop-up ?
    I tried to use the property silent on the class IWebBrowser2. Inded, the pop-up doesn't appear anymore, but my XML file isn't correctly printed. I supposed the default response of the pop-up (which is no) is applied. So the script isn't executed.
    I also tried to configure IE to not display this pop-up : No result
    Regards
    Laurent

    Hello,
    I think that you need to configure your browser, can you take a look a this article:
    http://www.maxi-pedia.com/scripts+are+usually+safe​+do+you+want+to+allow+scripts+to+run
    Regards,
    Nacer M. | Certified LabVIEW Architecte

  • Problem with NIReport.llb\Print HTML Report using IE.vi on different machines

    We have 5 machines here in our workgroup which have the same state regarding security patches and other system updates. We recently found out that there is a problem with the NIReport.llb\Print HTML Report using IE.vi on the different machines.
    If I would open the VI on MachineA the control could be loaded. If I would open the VI on MachineB the control could be loaded. If I would copy the VI from MachineB to MachineA and open the VI the control could not be loaded. If I would copy the VI from MachineA to MachineB and open the VI on MachineB the control could be loaded. MachineB could load the version from MachineA and MachineB but on MachineA only the own version will load. I have seen that both versions have the same GUID for the Microsoft Webbrowser but are different in some other aereas.
    Since printing HTML Reports is part of the application which will be distributed as application I want to know if someone else have seen such a behaviour or has got problems distributing an application.
    Also I want to know which additional information is stored in an Active-X container about the control beside the GUID.
    We have Win XP Prof SP2 with MS IE 6.0.2900.2180 on all machines in the workgroup.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

    Hi Tom,
    this is the VI <vi.lib>\Utillitiy\NIReport.llb\Print HTML Report using IE.vi copied from a machine that can load and run the VI and it will print. On this machine the control in the VI is white.
    This VI will give the "Control could not be loaded" message on my machine.
    The file shdocvw.dll is 2006-10-23 16:18 size 1.460 KB and I verifyed that both machines have the same version of this file.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    Print HTML Report using IE.png ‏11 KB

  • Cannot choose printer when printing HTML report

    Hello,
    I have lost many many hours trying to print correctly a report that is composed only of a JPEG image.
    After a conversation in the forum, I concluded that the LabVIEW has a bug printing Standard Reports, as it cannot manipulate correctly the margins and the scale of the image. But, when using Standard Reports I could choose which printer to use.
    So, I use HTML Reports that print the report smoothly, but the choise of the printer has a problem. No matter which printer is chosen by a Ring Menu, it prints to same printer all the time.
    Could you please give me any hint to solve this problem?
    I attach the corresponding code:
    Solved!
    Go to Solution.

    Hey guys, this is Paul with National Instruments.
    Being employed at NI I am obligated to provide a big disclaimer about the information I am about to provide:
    MANUALLY CHANGING YOUR WINDOWS REGISTRY CAN CAUSE CORRUPTION AND ERRORS IF YOU ARE NOT CAREFUL.  DO SO AT YOUR OWN RISK.
    With that being said, nikosfs was on the right track by editing his Windows Registry to perform this action.  Please see the following steps, and see if it helps further explain what you need to do:
    Open the Registry Editor. To do this, click Start >> Run and type "regedit", then press OK.
    Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows.   In this key there should be an entry called Device with values that should match up with your default printer.
    Right click on the Windows key, choose "Export" from the menu that pops up, and save the Registration File as printer1.reg.
    Leaving the Registry Editor open, change your default printer. To do this, go to Start >> Settings >> Printers and Faxes. Right click on the printer that you want your report to print to, and choose the option "Set as Default Printer".
    Go back to the Registry Editor, it should be noted that the value of the Device entry has changed to the new default printer. Right click on the Windows key again, choose "Export" from the menu that pops up, and save the Registration File as printer2.reg
    These two files may now be used to manipulate your default printer settings in conjunction with the System Exec.vi. The figures below show how to use the registry files and the System Exec.vi. 
    → The "/s" in the text field makes sure that this vi will run without interrupting regular user interaction.
    → The path constant is set to "c:\" because the Registration Files were saved directly in the C drive. Change according to location of Registration Files.
    Make sure that this operation is called before the Print Report.vi is called, as it will print just to the default printer.
    Paul Davidson
    Sound and Vibration Software Staff Product Support Engineer
    National Instruments

  • Error according printing html report

    I bulid a vi to print HTML report but I have problem printing this report .
    I try ever to used some example which national Instrument bulid , such as Report Generation > Text
    Report, but ever in this example I couldn't print the file (HTML).

    Wisam,
    Could you tell us what procedure are you following to run that example? and also what version of LabVIEW you have?
    The way you have to run that example (Text Report.vi) is that when you open it, in the control that reads: "Report Type" you select HTML, and also in the control that reads "HTML Save Path" you set the path like for example "C:\test1.htm", now run it and you should have now the HTML format type report. I believe that you also have in that same directory of examples another one called : Example HTML Report Report, that one also shows how to print a report to an HTML file. Try the example you mention setting up the controls that I wrote above and it should work. If not please contact us and we can try to send you an original example and see if i
    t works. You can do it by this same means or by direct contact ( www.ni.com/ask ).
    Good luck!...
    Nestor Sanchez
    Applications Engineer
    National Instruments
    Nestor
    National Instruments

  • Is there a way to print a Html-Report direktly in LabView?

    I created a Html-Report wich includes a jpg-Picture.
    Actually there is no way, in the Report Generation, to Print a Html file. I Would be
    glad if you have a solution (sub-vi?) to Print a Html file directly in Labview.
    Thanks
    PH!L

    You can drive IE with Lv through ActiveX: When you have creating an IE
    ActiveX reference with Lv, you will be able to open your file and then print
    them programmatically...
    "PH!L" a écrit dans le message news:
    [email protected]..
    > I created a Html-Report wich includes a jpg-Picture.
    > Actually there is no way, in the Report Generation, to Print a Html
    > file. I Would be
    > glad if you have a solution (sub-vi?) to Print a Html file directly in
    > Labview.
    > Thanks
    > PH!L

  • How to print a html report?

    I have LV 6.1 pro and I want after succesfull generate of html report
    print them. How?

    If you want to print the HTML report, you'll have to use ActiveX to open the resulting report with your web browser and then tell the browser to print it. Of course if you are wanting to print it, why are you using HTML? Why not generate it as a standard report? Or do both--one for printing and one for online publication.
    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

  • How to print an html report?

    In a Test UUT's execution, the process model generates and saves a html report. How can add steps to the process model to print the report each time? I'm thinking maybe somehow using an ActiveX call to open IE and then print (1 step or 2?), but I'm a newbie to ActiveX and don't know what server/class/method to use.
    ==============================================
    David Kaufman
    LabVIEW Certified Developer
    ==============================================

    Using Microsoft Word could be a good solution if you actually have it installed in the computer. In some cases, you may not want to have that application installed in the production floor for any reason (licenses, memory space...).
    I am attaching an example that shows how to print the report automatically after testing a UUT using ActiveX to communicate with Internet Explorer. It is more likely that any machine would have this application installed since it occupies a lot less memory space and it ships with any Windows OS. Furthermore, there are just 3 steps that do the trick!
    The attached zip file contains a modified sequential model. The entry points ("Single Step" and “Test UUTs”) have one new step that calls the "Print Report" sequence (also added to the sequential model). This new sequence has ActiveX steps that call two methods of the “Internet Explorer (IwebBrowser2)”object class exported by the “Microsoft Internet Controls” automation server. These two methods are:
    1) Navigate. Allows you to select the html file to load.
    2) ExecWB with the first parameter (cmdid) set to "OLECMDID_PRINT" (prints the loaded file) and the second parameter (cmdexecopt) set to OLECMDEXECOPT_DONTPROMPTUSER" (don’t show the print dialog).
    (For more information about these methods, please refer to the MSDN Library)
    The example will print the report after each UUT is tested. The "Print Report" step is set to run just if the Report Generation is not disabled (see its preconditions).
    This is what you need to do to run the example:
    1) Copy the contents of the zip file to: \Components\User\Models\TestStandModels
    2) Make sure that the “User Components Directoty” is checked in the Search Directories.
    3) Run any sequence using Single Pass or Test UUTs.
    WARNING: There is a known issue when using the printing capabilities of the Internet Explorer. This is what is explained in the MSDN library:
    "... Internet Explorer prints in the background. This means that the print processing is actually completed asynchronously in a separate thread.Upon return from ExecWB, the print processing may continue for several seconds or even up to a minute or two based on various factors such as the size of the content and how busy your system is currently. The problem is that if you start a print job and then destroy the WebBrowser or close your application before the background thread finishes processing, the thread will abandon its work and the page may not be completely printed..."
    There are 2 approaches to work around this problem:
    1) Use a delay before destroying the WebBrowser reference (which is done in the cleanup step group of the "Print Report" sequence in the example). This is the approached used in the example. The third step in the “Print Report” sequence is a Wait step. The step is currently set to wait for 3 seconds which has worked for me for almost any report sizes.
    2)In Internet Explorer 5 you can work around this problem by sinking the OnAfterPrint event. If you have started a print job, then you should wait to release the WebBrowser until after this event has been received. If you choose this approach you could use the ActiveX events capabilities of Labview or Visual Basic to create a small program detecting this event. There's a simple sample code provided in the MSDN library for VB.
    Enjoy!
    Attachments:
    SequentialModel.seq ‏169 KB

  • How to prevent the 'Save [html] Report to File' from overwriting an existing file.

    Using LabVIEW 2011 on Windows XP, SP3.
    I am trying to use the Save Report to File vi, specifically a html report.
    It allows replace and create file.
    In my application, I would like to create or open the file. When I try to edit to include those options
    and save the vi something breaks as it appears to be an OOP vi.
    How can I perform this functionality?
    Thanks,
    Steve Scoppettuolo

    Wait, what do you mean you try to "edit to include those options"? Are you actually modifying a core LabVIEW VI? If you are STOP. NEVER modify VIs shipped with LabVIEW.
    Your question is fundamentally not clear. Why do you want to open the file if you're trying to save the report? Are you trying to append to an existing report? If so, the New Report VI has a "template" input. If you specify an existing report file it will be opened for editing. Please review the documentation on the report VIs.

  • 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

  • Print html report

    Hi ,
    In oracle forms 11g, I have a text field that includes html tags.
    I crate a report in report builder 11g, selecting html text from database.
    When I run the report using the
         set_report_object_property(report_id, REPORT_DESTYPE, CACHE);
         set_report_object_property(report_id, REPORT_DESFORMAT,'html');
    WEB.SHOW_DOCUMENT ........
    It gives me the html page ok.
    When I send the report to printer it prints also the html tags e.g. <body> <b>my text ..........<b> </body>.
         set_report_object_property(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
         set_report_object_property(report_id, REPORT_DESTYPE, PRINTER);
         set_report_object_property(report_id, REPORT_DESFORMAT,'HTML');
         set_report_object_property(report_id, REPORT_DESNAME,myprintername);
         set_report_object_property(report_id, REPORT_SERVER,servername);
    Set_Report_Object_Property(report_id, REPORT_OTHER, 'paramform=no');
    v_rep := RUN_REPORT_OBJECT(report_id);
    Can anyone help ?
    Thanks
    Edited by: user1424905 on 21-Jul-2011 04:16

    Hello,
    I think that you need to configure your browser, can you take a look a this article:
    http://www.maxi-pedia.com/scripts+are+usually+safe​+do+you+want+to+allow+scripts+to+run
    Regards,
    Nacer M. | Certified LabVIEW Architecte

  • HTML Report Viewer: No Print Button

    Greetings,
    I am using the HTML Report Viewer in an Asp.net Web Form.
    My problem is there is no print button, even though
    ShowPrintButton="True"
    Any help would be greatly appreciated.
    Many thanks,
    Todd
    <rsweb:ReportViewer ID="MainReportViewer" runat="server"
    ProcessingMode="Remote"
    Width="100%"
    Height="100%"
    ShowExportControls="True"
    ShowFindControls="True"
    ShowParameterPrompts="True"
    ShowPromptAreaButton="False"
    ShowRefreshButton="False"
    ShowPrintButton="True"
    ShowZoomControl="True"
    ZoomMode="Percent"
    BackColor="White" >
    <ServerReport DisplayName="MainReport" />
    </rsweb:ReportViewer>
    Best, CM+

    Hi CM+,
    In your scenario, which browser are you using? In Reporting Services, the ReportViewer control is used to embed report functionality in an ASP.NET Web application. Not all report functionality is supported by all browsers. Print button is hidden in any browser
    that is not IE because ReportViewer uses ActiveX for client printing which means no other browser other than IE can handle it. You can try the following approaches as workaround for this issue.
    Cross-Browser Printing with Asp.Net ReportViewer
    Hope this helps.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Print or Export an HTML Report SQL Developer 1.5.5

    I have created an HTML report using the plsql-dbms_output report style. Unfortunately, I do not see a way of printing or exporting the report. If I select File - Print, it just prints a snapshot of the workspace. Also, I do not see any options for exporting the report. Of course, exporting the report would only be useful if it is saved as an HTML file preserving all the formatting.
    Can anyone shed some light on what I may be doing incorrectly or provide an alternate method for sharing an HTML report?
    Thanks,
    Jim

    I haven't seen printing working correctly ever, in any version.
    I suggest you copy/paste the output to a decent editor and print from there...
    Regards,
    K.

Maybe you are looking for

  • Voice memos do not delete from iPhone...

    How do I delete the voice memos that are stored on my iPhone 4, and are no longer on my MacBook Pro? My voice memos folder on my MacBook Pro was over 4 Gb, so I copied its contents to an external hard drive. I left the folder and deleted the voice me

  • My ipod works in itunes but does not appear in "my computer" after I changed the properties

    My ipod works in itunes but does not appear in "my computer" after I changed the properties. First off, I'm using Windows XP (and Mac SnowLeopard) Here's how it started. For some reason my ipod started showing up as a camera when I plugged it in. It

  • What is the offline method of downloading and installing Firefox?

    I'd like to upgrade to the latest version of Firefox. The catch is, I only have a dialup connection, so online installation is not an option. It would take hours -- or even days. (And I'm charged by the minute.) Is there an offline way to install Fir

  • Help with saving my itunes attributes

    Ok. i resecntly got a fifth gen ipod, and i love it. The itunes is great. User friendly and i can customize everything. i love it. but i do have 1 concern that needs an answer. i'm running a computer that was pretty much a mailorder pc taht started o

  • How to control the default infotype start date when executing an action?

    Dear all, I have a custom Infotype, which start date should always before the hiring date and so we want to leave the start date blank which creating the relative Infotype. I have already done the configuration in V_T582A such that the start date pro