PageSize in a PageSetupDialog ??

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...
 
C

ClayB [Syncfusion]

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top