Report.PrintOptions.PageNumbers

edited 8:19PM 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 8:19PM
    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 8:19PM
    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 8:19PM
    try the latest daily build fr4.7.18
    if that does not clear the problem, then let us know.
  • edited 8:19PM
    ... 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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.