Report.PrintOptions.PageNumbers
With DialogPage I tried to determine which pages to be printed .
We created a DialogPage with 3 buttons.
The code from the buttons is:
Do not do something well?
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
code where you load and run report?
why not just use the standard print dialog
pls see the file.>> File
if that does not clear the problem, then let us know.
Here is *.SWF file with my test: see test
Can you help me?