Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 5th, 2008, 06:14 AM
Registered User
 
Join Date: Dec 2008
Location: ,MH,India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Reply With Quote
  #2 (permalink)  
Old December 5th, 2008, 11:00 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

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 -/
Reply With Quote
  #3 (permalink)  
Old December 6th, 2008, 01:50 AM
Registered User
 
Join Date: Dec 2008
Location: ,MH,India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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...

Gauri
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to retrive paper sizes of default printer gaurikhot .NET Framework 2.0 0 December 6th, 2008 06:23 AM
Problem with custom paper size adrineh Crystal Reports 0 August 26th, 2006 03:21 AM
Printer.Paper size problem in VB. :) venkatesh_anmca Access VBA 1 March 21st, 2005 04:09 AM
how to set the paper size in javascript sundarisekaran J2EE 1 July 15th, 2004 04:42 PM



All times are GMT -4. The time now is 09:01 AM.


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