Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.

  #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 -/
  #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


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





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