Skip to Content
0
Former Member
May 19, 2010 at 12:30 PM

Moving subreport in code loses link

35 Views

Hi,

I have a report on which is an external subreport. Parameter fields are linked in the main report.

The subreport needs to be printed on the left or right side of a page, depending on a boolean.

I wanted to move the subreport in code using something like this:

this.PageHeaderSection1.ReportObjects["Subreport"].Left = 6970;

But that seems to remove the links, because I get an Invalid field name error and then get prompted to fill in the parameter fields.

The code is in a separate class that inherts from the reports own class.

Any ideas on how to move a subreport in code?

(using Visual Studio2008 CR10)