resourcesys
asked on
Set WebBrowser control to print portrait or landscape
Hi all,
I have a simple windows form application to print a web page using the WebBrowser control.
I just need to know one thing, how to set the orientation of the printed page to landscape or portrait.
Any help is appreciated.
Thanks.
I have a simple windows form application to print a web page using the WebBrowser control.
I just need to know one thing, how to set the orientation of the printed page to landscape or portrait.
Any help is appreciated.
Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I tried printDialog.Document.Defau ltPageSett ings.Lands cape but their is no relationship between the printdialog object and the wbebrowser object.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi sedgwick,
No, I am using the WebBrowser.Print() method.
I need to print the web page automatically, without the user having to select any options.
If it makes any difference, the printer is PDFCreator as I am turning the webpage into a PDF document.
Thanks.
No, I am using the WebBrowser.Print() method.
I need to print the web page automatically, without the user having to select any options.
If it makes any difference, the printer is PDFCreator as I am turning the webpage into a PDF document.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
reourcesys, does the dll need to be registered on just your development machine or all user machines?
ASKER
Hi peteredm,
The application I developed runs only on one computer, the main server, as such, we only registered the .dll on that server.
In short, the .dll would need to be registered on any computer where the application is to be run.
Hope this helps.
The application I developed runs only on one computer, the main server, as such, we only registered the .dll on that server.
In short, the .dll would need to be registered on any computer where the application is to be run.
Hope this helps.
Afraid not, for a windows app that could be used on any machine in our organisation (hospital).
Looked into modifying the registry but can only find page orientation for ie5 & 6 not 7 which is what's used here. CSS3 don't work until ie9..
At a loss on this one...
Looked into modifying the registry but can only find page orientation for ie5 & 6 not 7 which is what's used here. CSS3 don't work until ie9..
At a loss on this one...
set-up is as below if anyone's got any thoughts
vb.net (v2) windows application
html document in a webbrowser control
vb.net (v2) windows application
html document in a webbrowser control
printDialog.Document.Defau