LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I Print a document from a WebVI?

I am populating a String Indicator on the Web Page.

If I want to Print that Indicator contents to a locally connected Printer, Is this possible?

Or not recommended?

 

 

KM

0 Kudos
Message 1 of 2
(1,126 Views)

There are a couple of considerations when printing from a web application in the browser:

 

  1. The browser does not give you a way to print a specific portion of the page; you can only call print to print the entire page. The browser also does not provide customization of things like margins, headers, etc. The way those appear are browser specific.

    You may have seen that when you print a page, for example in gmail, that you actually print a different web page that is dedicated to printing. You may want to either design the WebVI so that it is good for both normal usage and printing or have a separate WebVI dedicated to organizing the page for printing.
  2. Web pages can cause the print dialog to open but they cannot fully control the print job, ie select the printer to print to. The user has to use the print dialog to choose a printer and printer settings.

Attached is an example that is able to call the browser print method when a button is clicked on the page.

 


Milan
0 Kudos
Message 2 of 2
(1,040 Views)