Because when I pass the configurations of the it makes up like Landscape the sources of the printer matrix they don't appear more. That also happens with the new version 7.01 For for Delphi 6.
You must change the layout of the report components to support a different orientation. The report components will not change based on the printer setup options. The layout must be configured to print correctly. One alternative is to create two layouts and save them to two report tempalte files (trm). Then when you want to print on orientation or the other, you can load one of the two templates before the report is to be printed.
If you want to change the orientation of a subreport, then make sure that Subreport.ParentPrinterSetup is set to False.
Knowing that the page will be "trimmed" when you change the orientation, then when are you setting the orientation? If you set it in the print dialog, it should print using that orientation, "trimming" the pages.
Have you tried using the Report.OnEndPage event to set each page's printer setup? If this is your timing, then you have to access the page's printer setup object and not the report's because the printer setup has already been assigned from the report to the page. This event is just before the page is sent to the output devices.
Comments
orientation. The report components will not change based on the printer
setup options. The layout must be configured to print correctly. One
alternative is to create two layouts and save them to two report tempalte
files (trm). Then when you want to print on orientation or the other, you
can load one of the two templates before the report is to be printed.
If you want to change the orientation of a subreport, then make sure that
Subreport.ParentPrinterSetup is set to False.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Hello,
I mean that the sources of the printer matrix don't trim in time of project,
when I change the configuration of the paper to leave in way landscape.
Ivan
then when are you setting the orientation? If you set it in the print
dialog, it should print using that orientation, "trimming" the pages.
Have you tried using the Report.OnEndPage event to set each page's printer
setup? If this is your timing, then you have to access the page's printer
setup object and not the report's because the printer setup has already been
assigned from the report to the page. This event is just before the page is
sent to the output devices.
Report.Engine.Page.PrinterSetup.Orientation := poLandscape;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com