We're using Reportbuilder for Delphi and I have a report, made up of several smaller subreports, set up to print landscape. Is there a way to make the first subreport print in portrait, whilst the others print landscape?
I have tried setting the orientation on the TppReport PrinterSetup object before it prints and this seemed to work at first, however it caused problems with printing the report, and exporting it to PDF.
Thanks!
Yes it is possible. In report design for main, uncheck
ParentPrinterSetup
for the sub reports.Set
poLandscape
orpoPortrait
inPrinterSetup
for the sub report from the sub report tab.Tested with ReportBuilder 12.03, Delphi XE and Foxit 4.1.1
Edit 1 Also tested with D2007 and ReportBuilder 10.07. No and problem printing to pdf with first subreport as portrait and second subreport as landscape.
Here is the dfm containing the report definition I tested with.