Hi sachin,
What I asked was, did you set the Document property of the
PrintPreviewDialog instance you're using to the PrintDocument that you
defined below? The PrintPreviewDialog class has a Document property that
determines where it gets its PageSettings and PrinterSettings from. If you
do not set it, it will use default PageSettings and PrinterSettings, rather
than the same PageSettings and PrinterSettings that you have configured for
your PrintDocument.
--
HTH,
Kevin Spencer
Microsoft MVP
Chicken Salad Surgery
Who is Mighty Abbott? A twin-turret scalawag.
"sachin" <sa************@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
Hi kevin,
the code that i am using as follows
printDocument.DefaultPageSettings.PrinterSettings. DefaultPageSettings.Landscape=true;
printDocument.DefaultPageSettings.PrinterSettings. DefaultPageSettings.Margins.Left=25;
printDocument.DefaultPageSettings.PrinterSettings. DefaultPageSettings.Margins.Right
=50;
printDocument.DefaultPageSettings.PrinterSettings. DefaultPageSettings.Margins.Top
=20;
printDocument.DefaultPageSettings.PrinterSettings. DefaultPageSettings.Margins.Bottom=25;
Kevin Spencer wrote:
>Did you set the Document in the PrintPreviewDialog? The PrintDocument has
the PrinterSettings and PageSettings that are used by the
PrintPreviewControl.
--
HTH,
Kevin Spencer
Microsoft MVP
Chicken Salad Surgery
Who is Mighty Abbott? A twin-turret scalawag.
"sachin" <sa************@gmail.comwrote in message
news:11**********************@m73g2000cwd.googleg roups.com...
Hi
I am working on report using print preview dialog control in
windows application. Report is displayed properly in control. With
paper size 850X1350 (Legal)(Lanscape mode=true) .
But when page goes to printer for printing. It consider it as A4 size.
and truncate printing document.
any body help me...