I think you need to create a custom papersize object, and then do the settings.
Does this forum thread help? http://vbcity.com/forums/t/130846.aspx _____ Ian Thomas Victoria Park, Western Australia _____ From: [email protected] [mailto:[email protected]] On Behalf Of Kirsten Greed Sent: Thursday, June 23, 2011 2:43 AM To: 'ozDotNet' Subject: Problem setting local report pagewidth at runtime Hi All I am using Microsoft SQL Server Report Builder 2.0 to create reports for a winforms application. I want to be able to set the pagesettings at runtime. Dim local As LocalReport = New Microsoft.Reporting.WinForms.LocalReport() local.ReportPath = "c:\test.rdl" Dim pagesettings As Microsoft.Reporting.WinForms.ReportPageSettings pagesettings = local.GetDefaultPageSettings 'kind is custom otherwise we get a read only error Debug.print pagesettings.PaperSize ' returns 1100 pagesettings.PaperSize.Width = 1200 Debug.print pagesettings.PaperSize ' still returns 1100 Any ideas? Thanks Kirsten
