Hello,
This is my first post on this forum, but you all seem very helpful and I look forward to your replies. I have recently started on a pretty simple VB.NET (2.0) app. There is a lot of data manipulation, but that isn't really pertinent.
On one form I have a Webbrowser control that goes to a particular location then the document at that location is modified slightly and printed using the webbrowser's print function. I need to change the printer settings for that webbrowser so that it will print on legal size paper with the smallest margins possible. I have already found a way to modify the margins via the registry but changing the paper size is beyond me.
Also, it can be assumed the default printer is a network printer and that cannot be changed. This seems to prevent me from using winspool.drv... Which was way complicated anyways. I have not been able to find a way to add a printer port programmatically. if that could be accomplished I suppose winspool.drv could be used, but I would like to avoid that.
Thank you in advance for all your help,
Vajra!
This is my first post on this forum, but you all seem very helpful and I look forward to your replies. I have recently started on a pretty simple VB.NET (2.0) app. There is a lot of data manipulation, but that isn't really pertinent.
On one form I have a Webbrowser control that goes to a particular location then the document at that location is modified slightly and printed using the webbrowser's print function. I need to change the printer settings for that webbrowser so that it will print on legal size paper with the smallest margins possible. I have already found a way to modify the margins via the registry but changing the paper size is beyond me.
Also, it can be assumed the default printer is a network printer and that cannot be changed. This seems to prevent me from using winspool.drv... Which was way complicated anyways. I have not been able to find a way to add a printer port programmatically. if that could be accomplished I suppose winspool.drv could be used, but I would like to avoid that.
Thank you in advance for all your help,
Vajra!