Problem with sub-report in landscape mode


02-25-2010, 10:35 AM
I have a report that is displayed in landscape mode. On this report I have a sub-report that is also designed for landscape mode. The problem I have is that when I run the report, the main report is displayed correctly (all fields are visible), but the sub-report is cut at the width of a portrait page. What is the problem? The width of the sub-report on the main report is wide enough to fit all the contents.

Thanks

Re: Problem with sub-report in landscape mode


02-25-2010, 10:19 PM
Hello,

How is the behavior when you run the subreports individually? Can you send the RPX (layout) of the main and the subreports for us to analyze and provide a solution?

Regards,
Prantik

Re: Problem with sub-report in landscape mode


02-27-2010, 12:25 AM
When the subreport is run individually it looks ok. Here are the rpx files.

Re: Problem with sub-report in landscape mode


03-01-2010, 9:36 AM
Hello,

Do you observe the issue of the sub report being cut off in the viewer or while printing? I was unable to observe this in the viewer. You may try setting the subreports printer settings to landscape at design time. Also, if the issue is only while viewing, you may try setting the Printer.DeviceName = "“ in both the main and subreports to use the virtual printer to display the report. I also observed that your main report’s printwidth is 15840 and the subreport’s printwidth(15645) + left margin(1440) + right margin(1440)  is much greater than 15840. Imagine printing a page of width 18000 to a page of width 15645 ; the text is bound to cut off.

Regards,
Prantik