PageSize in a PageSetupDialog ??

  • Thread starter Thread starter cmrchs
  • Start date Start date
C

cmrchs

Hi,

how can I set the PageSize in a pageSetupDialog-box ?

I tried :

objPageSetup.PageSettings.PaperSize.Kind = PaperKind.A4

but the Kind-property is read-only.

So how ?

Thanks

Chris



**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
I think you normally set this by choosing one of the PaperSizes in the
PrinterSettings.PaperSizes collection (which .

pageSetupDialog1.PageSettings.PaperSize =
pageSetupDialog1.PrinterSettings.PaperSizes[someIndex];

==========================
Clay Burch, .NET MVP

Visit www.syncfusion.com for the coolest tools

Chris C said:
Hi,

how can I set the PageSize in a pageSetupDialog-box ?

I tried :

objPageSetup.PageSettings.PaperSize.Kind = PaperKind.A4

but the Kind-property is read-only.

So how ?

Thanks

Chris



**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 
Back
Top