LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save labview frontpage

hi, i was wondering if someone can help me with something..
i currently have this program..
with a click of my print button, it print to a printer
but if i set my printer to a PDF Writer, it will save as PDF.
I also have a "Save chart". When I click on that, an HTML report of my CHART will be saved.
I like to save my labview front page with the click of my "Save Chart" button as an HTML format. or PDF is fine too..
I don't like the idea of asking my user to set their printer because that might gets confusing for them.
is there a way?
thanks in advance
 
Best regards,
Krispiekream
0 Kudos
Message 1 of 6
(2,959 Views)
 
Best regards,
Krispiekream
0 Kudos
Message 2 of 6
(2,958 Views)
Hi krispiekream,

You can let the user choose a printer by using .NET to have a default Windows Print Dialog to show up. The PrintDialog .NET constructor is in System.Windows.Forms namespace. I've attached a simple example VI that demostrates how to open a PrintDialog and pass the name of the printer to the Print Report.vi.

Regards,
Stanley Hu
National Instruments
Applications Engineering
http://www.ni.com/support
Message 3 of 6
(2,878 Views)
thanks for the response..
i tried loading your sample but i have labview 8.0 and 7.0.
do you think you can save it to either version?
thanks

Best regards,
Krispiekream
0 Kudos
Message 4 of 6
(2,870 Views)
Here's the VI saved in 8.0
Message 5 of 6
(2,856 Views)
thank you so much..
that will come in handy!!!


Best regards,
Krispiekream
0 Kudos
Message 6 of 6
(2,849 Views)