Hi Dude & Ian
I am guessing that the technique would be similar, since I am consuming the
.rdl report from inside winforms
However an easier way seems to be to edit the .rdl file behind the scenes
Weird that the property seems settable when it isn’t.

Thanks for your Help
Kirsten
 

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of DotNet Dude
Sent: Thursday, 23 June 2011 11:15 AM
To: ozDotNet
Subject: Re: Problem setting local report pagewidth at runtime

On Thu, Jun 23, 2011 at 11:08 AM, Ian Thomas <[email protected]> wrote:
> 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
>
>

that thread isn't related to SSRS, it is for the print dialog page setup

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

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 6230 (20110622) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



Reply via email to