Question about TfrxMasterData
johnnix
Serrai, Greece
Hello,
I have a .rpt file which contains a TfrxMasterData object. The Page orientation in that file is set to Landscape. Now inside my program I need to change the orientation of the page so I first load the file on a TfrxReport object and then use:
aPage := TfrxReportPage(MyReport.Pages[1]);
aPage.Orientation := poPortrait;
This works ok but the master data band width does not change, it remains the same as before I change the orientation of the page. In the report designer when the orientation changes all objects are stretched accordingly so I am guessing I need to do something to get the new width? [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Kindest regards[/img]
I have a .rpt file which contains a TfrxMasterData object. The Page orientation in that file is set to Landscape. Now inside my program I need to change the orientation of the page so I first load the file on a TfrxReport object and then use:
aPage := TfrxReportPage(MyReport.Pages[1]);
aPage.Orientation := poPortrait;
This works ok but the master data band width does not change, it remains the same as before I change the orientation of the page. In the report designer when the orientation changes all objects are stretched accordingly so I am guessing I need to do something to get the new width? [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Kindest regards[/img]