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

Can not retrieve/set "Custom" PaperSize values

P: n/a
I suppose I'd have to be extremely lucky to find someone who knows about
what I now write but I have to try.

Using PageSetupDialog and then clicking Printer and then Properties I can
select "Custom" and set the page size to 9x12

But when I exit that dialog I can't find the values 9 and 12 anywhere in the
PrintDocument I passed to the dialog.

GetDeviceCaps(lHdc, GDI.PHYSICALWIDTH) and
do return 9x12

gPD.DefaultPageSettings.PaperSize = New PaperSize(lPaperName, 900, 1200)
it is not reflected in GetDeviceCaps

If there is anyone out there that has tried to retrieve/set the "Custom"
values I appreciate hearing from them.

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.