Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2004

Tip: Looking for answers? Try searching our database.

Cannot Alter PrintDialog Settings Programatically

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee Ottaway - 10 Aug 2004 10:09 GMT
Oh boy, I really need help with this one.  I've been working on it for
days and have gotten nowhere.  The department I'm contracting for have
just purchased a very nice and highly expensive HP Laserjet 5500n
colour laser printer, solely so that I could print easily from VB.NET.
My problem is I cannot seem to change the print settings for the
print dialogue programatically. For example, most of the prints
require a landscape format.  I've tried:

pd.DefaultPageSettings.Landscape = True

and

pd.PrinterSettings.DefaultPageSettings.Landscape = True

where pd is a PrintDocument class of course.  I then attach the print
document to the print dialogue using pDlg.Document = pd and voila! the
print dialogue tells me it's in portrait mode.  Similarly I can't
change the page size or indeed anything else in the dialogue.

The PrintDocument default page settings ARE changing before I show the
print dialogue because I've tested the variables, but the print
dialogue seems to set them back to a basic portrait format.  Is it a
setting within the printer that could be causing this or what?  I've
looked avidly throughout the newsgroups for anyone who's had a similar
problem, but I somehow seem to be the only one in the world!

Does anyone have any ideas???
Sijin Joseph - 11 Aug 2004 07:07 GMT
That should actually work, can you post actual code so that the problem can
be reproduced.

Signature

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> Oh boy, I really need help with this one.  I've been working on it for
> days and have gotten nowhere.  The department I'm contracting for have
[quoted text clipped - 23 lines]
>
> Does anyone have any ideas???

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.