Print/Export Page Range from code

Hi,

How can I set the page range in a frxPDFExport from code? I found out that I can use the PageNumber property for specific pages, but how how can I set it to all or current? I tried to set CurPage to True but it didn't work.

Thanks in advance!

Comments

  • gpigpi
    edited 7:27AM
    See frxPrintDialog.pas:
    if AllRB.Checked then
          AReport.PrintOptions.PageNumbers := ''
        else if CurPageRB.Checked then
          AReport.PrintOptions.PageNumbers := IntToStr(AReport.PreviewPages.CurPreviewPage)
        else
          AReport.PrintOptions.PageNumbers := PageNumbersE.Text;
    

Leave a Comment