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 8:44PM
    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

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.