Home All Groups Group Topic Archive Search About
Author
17 Nov 2006 2:09 AM
Lloyd Dupont
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?

Author
17 Nov 2006 4:23 AM
Lloyd Dupont
Never mind, problme with the printer, t works!

Show quote
"Lloyd Dupont" <net.galador@ld> wrote in message
news:%23bamz1eCHHA.468@TK2MSFTNGP06.phx.gbl...
> 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?
>

AddThis Social Bookmark Button