p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET Framework 2.0 (http://p2p.wrox.com/forumdisplay.php?f=141)
-   -   Set Paper Size (custom also) to default Printer (http://p2p.wrox.com/showthread.php?t=71725)

gaurikhot December 5th, 2008 06:14 AM

Set Paper Size (custom also) to default Printer
hi all,

i want to set paper size (custom also) to default printer through programming in vb.net. i am using WIN API to set all properties to printer. I am not using printDialog control and print document.

thank you.

samjudson December 5th, 2008 11:00 AM

If you are using the WIN API then you need to post this on a WIN API forum, not a VB.Net one.

/- Sam Judson : Wrox Technical Editor -/

gaurikhot December 6th, 2008 01:50 AM

thank you Sam for your reply.
Actually i am using class that uses WIN API and that class is used in my project of VB.net.

anyway, is there any way to set all properties of printer (mainly paper size and paper source) to default printer programatically in vb.net.
i had done this but i am facing one problem is that, the settings are not apply to all printers (e.g settings are not apply to HP LserJet 1022 printer).

can you help me in this...


All times are GMT -4. The time now is 11:59 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.