PC Review


Reply
Thread Tools Rate Thread

Custom Printing

 
 
knstrelkov
Guest
Posts: n/a
 
      13th Oct 2008
Hi!
I have a problem with custom printing in windows forms application. I want
to print a large image to big printer (plotter) with custom paper size
settings.
This my code:
....
PrintDlg as System.Windows.Forms.PrintDialog PrintDoc As
System.Drawing.Printing.PrintDocument
PrintDlg.Document = PrintDoc
....
'show a print dialog
PrintDlg.ShowDialog()

'this property has a selected paper name
PrintDoc.DefaultPageSettings.PaperSize.PaperName

'these properties have a paper size
PrintDoc.DefaultPageSettings.Bounds.Width
PrintDoc.DefaultPageSettings.Bounds.Height

And now. If at print dialog box I select one of the standart paper size,
these properties return valid values. But if I select CUSTOM and enter own
custom size values it returns PaperName=custom and Width and Height not
values which I entered at Print Dialog Box.

What's wrong?

I use Microsoft Visual Studio 2005. .Net Framework 2.0.50727 SP1

Sorry for my Bad English.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom printing =?Utf-8?B?TWFyY29C?= Microsoft Powerpoint 1 2nd Nov 2006 10:26 PM
Custom Printing Melissa Windows XP Print / Fax 1 22nd Sep 2004 03:18 AM
Printing plugin for custom printing over a browser session Eric Windows XP Internet Explorer 0 19th May 2004 05:52 PM
Custom Printing =?Utf-8?B?Sm9obiBEYWlseQ==?= Microsoft Access VBA Modules 0 26th Nov 2003 03:06 PM
Printing Custom Forms and Exporting Custom Fields Kathy Microsoft Outlook 0 7th Aug 2003 02:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:35 AM.