HighTechTalks DotNet Forums  

Printing Problem

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss Printing Problem in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Lloyd Dupont
 
Posts: n/a

Default Printing Problem - 11-16-2006 , 09:09 PM






Before printing I create an instance of PrintDocument as Follow (beware,
pseudo code)

//==============================
PaperSize ps = new PaperSize();
ps.Kind = PaperKind.A3
ps.Width = 1169;
ps.Height = 1654;

PrinterSettings printer = new PrinterSettings();
printer.PrinterName = "my printer";
printer.PageSettings.PaperSize = ps;

PrintDocument pd = new MyPrintDocument();
pd.PrinterSettings = ps;
//==============================

As you culd see I set the page's size (I set only value listed in the list
of PaperSize of the printer).
Now my problem is, whatever I do, it seems do ignore my page settings!!!

Am I missing something?



Reply With Quote
  #2  
Old   
Lloyd Dupont
 
Posts: n/a

Default Re: Printing Problem - 11-16-2006 , 11:23 PM






Never mind, problme with the printer, t works!

"Lloyd Dupont" <net.galador@ld> wrote

Quote:
Before printing I create an instance of PrintDocument as Follow (beware,
pseudo code)

//==============================
PaperSize ps = new PaperSize();
ps.Kind = PaperKind.A3
ps.Width = 1169;
ps.Height = 1654;

PrinterSettings printer = new PrinterSettings();
printer.PrinterName = "my printer";
printer.PageSettings.PaperSize = ps;

PrintDocument pd = new MyPrintDocument();
pd.PrinterSettings = ps;
//==============================

As you culd see I set the page's size (I set only value listed in the list
of PaperSize of the printer).
Now my problem is, whatever I do, it seems do ignore my page settings!!!

Am I missing something?




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.