Report.PrintOptions.PageNumbers

edited 10:22PM in FastReport 4.0
With DialogPage I tried to determine which pages to be printed .
We created a DialogPage with 3 buttons.

The code from the buttons is:
procedure Button1OnClick(Sender: TfrxComponent);
begin
 report.PrintOptions.PageNumbers := '1,2';                                   
end;

procedure Button2OnClick(Sender: TfrxComponent);
begin
  report.PrintOptions.PageNumbers := '3'  
end;

procedure Button3OnClick(Sender: TfrxComponent);
begin
 report.PrintOptions.PageNumbers := '1..3'  
end;
If you do the preview after design time goes perfectly (the print dialog have set pages to print ), but if you run the file from application does not have anything set.

Do not do something well?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:22PM
    is this an fr dialog or external ? what version or build of fr4?
    code where you load and run report?
    why not just use the standard print dialog
  • edited 10:22PM
    is this an fr dialog and version build of fr4 is: 4.7.5

    pls see the file.>> File
  • gordkgordk St.Catherines On. Canada.
    edited 10:22PM
    try the latest daily build fr4.7.18
    if that does not clear the problem, then let us know.
  • edited 10:22PM
    ... the problem persist ... and I try to set runtime Report.ReportOptions.Name as: 'TestReportName'. Same problem.
    Here is *.SWF file with my test: see test

    Can you help me?

Leave a Comment