Display settings in report
I have two sets of reports in my program.
i have a set of reports in quickreport and the newer ones in fastreport.
i have a sticker jenerator that is shown on quickreport in a custom paper size
to fit a particular printer.
when i enter that report i change to a diffrent printer and return the printer
to the default one when the user closes the report.
this is working fine.
when the user generates a report of fastreport after that the display on it wrongly
as to fit to the size of the previous report, it's all messed up, on another
report that is quickreport the problem is not present.
the only thing the user can do is close the program and open it again and then it's ok, how can i prevent that from happening?
thanks,
Shlomi
i have a set of reports in quickreport and the newer ones in fastreport.
i have a sticker jenerator that is shown on quickreport in a custom paper size
to fit a particular printer.
when i enter that report i change to a diffrent printer and return the printer
to the default one when the user closes the report.
this is working fine.
when the user generates a report of fastreport after that the display on it wrongly
as to fit to the size of the previous report, it's all messed up, on another
report that is quickreport the problem is not present.
the only thing the user can do is close the program and open it again and then it's ok, how can i prevent that from happening?
thanks,
Shlomi
Comments
and priter y wich prints to custom page 25 mm to 25 mm for example.
i opened a report with page setting of 25 mm on 25 mm and printed to
printer y, after that i went to open the fastreport, and the display is showing me
the page as 25 on 25, and not like A4.
when i press the print button i see the printer y is selected even though printer x
is the windows default.
when i select manually printer x and press print the page corrects itself and prints fine, but this is not a good solution because sometimes i need only to see the report and not printing it.
I use a setprinter function to change default printers, when the custom page report opens i set printer y as windows default and when it closes i set printer x as default back, this is working fine (the report is ShowModal so it's not possible to
open other reports and then other reports)
I hope i explained better on that than before,
Regards,
Shlomi
check the report that has the custom page it may have the selectwhen loaded option checked.
if you are using a common report component and calling like
frreport1.loadfromfile('whateverreportname');
frreport1.showreport;
then calling again after previewing for another.
try adding Frreport1.clear;
before calling loadfromfile method.
Also see the changes to fr_class.pas (2) posted by samuray.
regards
gord