LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTML report orientation in LAbVIEW while printing

Hello All

To print HTML pages in LabVIEW 6.1 I am using activeX web browser. I would like to print html document in "landscape" orientation, but program keeps printing in portrait orientation.

How to change an orientation of my printer programatically?

Thanks in advance.
Pawel
0 Kudos
Message 1 of 7
(3,783 Views)
Th print orientation for a LV front panell is actually stored in the VI. Print the front panel manually once with the orientation rotated to landscape. When you finish printing you'll notice that the VI is now marked as being changed. Save it and everytime you print it will be in landscape orientation.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(3,783 Views)
Hi Mike

I am not printing the front pannel, I am printing the external HTML document using the IExplorel activeX.

Pawel
0 Kudos
Message 3 of 7
(3,783 Views)
Ok. In the past I have embedded a browser window into the LV front panel and it sounded like that is what you were doing. I don't know how to tell Explorer to reorient the printing. Is it perhaps a program default that you can set? Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 7
(3,783 Views)
Yes, exactly.
Due to lack of other choices, I am actually using the printer defaults, but I do not like this aproach.
Thanks anyway.

regards
Pawel
0 Kudos
Message 5 of 7
(3,783 Views)
Hi,

I don't have the specifics, but I think you can use the Windows SDK functions to change the orientation of the page when printing.

I don't think Internet Explorer has any activeX functionality that allows you to set this. There is a link here with some information that you can use:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnscrpt/html/dhtmlprint.asp

basically they created a free script utility that you could use. Another solution would be to show the user a print dialog, but I don't think that is what you are looking for.

I hope any of this helps,

Juan Carlos
N.I.
PageSetupDlg
0 Kudos
Message 6 of 7
(3,783 Views)
Hello
Yes, that is very interesting, especially the scriptX activeX to control the printing. Thank you.

Pawel
0 Kudos
Message 7 of 7
(3,783 Views)