LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Printing HTML code into PDF file from Labview (or Test Stand)

Can somebody educate me on this, please?
I have a program (a fairly complex Test Stand Executive running my test
setup, mostly trough Labview). At the end of execution the test report
is generated in the form of HTML file with links to few PNG images
(graphs with the test results).
I would like to have the test report as a single portable file, so PDF
comes to mind. I have Acrobat and Cute PDF writer, and of course I can
open HTML file manually and print it into PDF. But I would prefer to
have Labview (Test Stand) do this automatically once the HTML file is
generated, and then send it to me over e-mail. Sending over e-mail is
easy, but I am stuck with trying to automate PDF printing. Any
suggestions?
Thanks,
Gleb

0 Kudos
Message 1 of 5
(8,106 Views)

Hi Gleb,

I haven't worked at all with CutePDF, but if it's like Primo PDF than the software shows up basically like another printer.  You can make this "PDF printer" your default and LabVIEW will then print to it when you using the Printing VIs in the Report Generation Toolkit.  Otherwise, you may want to look for a PDF creator with an ActiveX Interface and then make calls into this Interface from LabVIEW.  I don't know if any exist, but it certainly wouldn't surprise me.

Hope this helps!
Megan B.
National Instruments

Message 2 of 5
(8,094 Views)
Don't know if what you are using will do it, but...

When I have used the report functions and printed to a printer (as I said, not PDF) I get the address header and footer that IE uses. If you want a clean report be sure to open Internet explorer and remove the header an footer under File >> Page Setup.
Message 3 of 5
(8,089 Views)

Thanks MattH

 

your reply helped me!!!

 

RENN 

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 4 of 5
(7,711 Views)

Hi Pals

     Can you please guide me.

i have the test reports in html format. now i want to  print hardcopy test reports via default printer.

 i am unable to find this options in Labview 6.1 . anyone please guide me.  how can i send the html file to printer (hardcopy)via Labview .

if posible please send me a sample code.

 

By warm Regards,

G.Palanivel,

 India.

0 Kudos
Message 5 of 5
(7,519 Views)