By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,886 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,886 IT Pros & Developers. It's quick & easy.

how to set printer resolution when printing graphics

P: n/a
I'm writing a vb.net application that prints jpeg pictires,
and although I set the
defaultpageSettings.printerResolution of my PrintDocument
object to the maximum available printer resolution
(1200x1200), I always get 600x600 in the .dpiX and .dpiY
properties of the graphics receieved in the
PrintDocument.PrintPage event...
And of course the print result is ugly!
Anyone's got an idea?

Philippe
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello,

"Philippe" <ph************@ubs.com> schrieb:
I'm writing a vb.net application that prints jpeg pictires,
and although I set the
defaultpageSettings.printerResolution of my PrintDocument
object to the maximum available printer resolution
(1200x1200), I always get 600x600 in the .dpiX and .dpiY
properties of the graphics receieved in the
PrintDocument.PrintPage event...
And of course the print result is ugly!


Enumerate the 'PrinterSettings.PrinterReosolutions' and check if 1200 x 1200
is supported.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

P: n/a
I've checked, it IS available, the
PrintDocument.DefaultPageSettings.PrinterResolutio n shows
1200x1200, the
System.Drawing.Printing.PrintPageEventArgs.PageSet tings.PrinterResolution
shows 1200x1200, yet the graphic context is still 600x600
dpi. I've made the same test, but selecting a resolution of
150x150: no effect on the available pixels in the graphic
context. Which property of which object is to be set to
force the printer resolution?

Philippe
-----Original Message-----
Hello,

"Philippe" <ph************@ubs.com> schrieb:
I'm writing a vb.net application that prints jpeg pictires,
and although I set the
defaultpageSettings.printerResolution of my PrintDocument
object to the maximum available printer resolution
(1200x1200), I always get 600x600 in the .dpiX and .dpiY
properties of the graphics receieved in the
PrintDocument.PrintPage event...
And of course the print result is ugly!
Enumerate the 'PrinterSettings.PrinterReosolutions' and

check if 1200 x 1200is supported.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.