Recent

Author Topic: [Solved] Is there a way to exclude the save to frp option in the save button  (Read 1173 times)

JanRoza

  • Hero Member
  • *****
  • Posts: 688
    • http://www.silentwings.nl
In the reports of my programs I always include the exportPDF option but users often don't pay enough attention and expect to save their report as pdf but instead saved it as frp. For an end user the frp format has no meaning as he cannot read it like a pdf.
Is there a way to exlcude the save as frp option from the reports save button?
« Last Edit: January 02, 2024, 01:37:42 am by JanRoza »
OS: Windows 11 / Linux Mint 22
       Lazarus 3.4 FPC 3.2.2
       CodeTyphon 8.50 FPC 3.3.1

JanRoza

  • Hero Member
  • *****
  • Posts: 688
    • http://www.silentwings.nl
After investigating the sources of lazReport I found out there is an option 'roHideDefaultFilter' in the report.
If you set this option to True then the Save button in the report preview will no longer show the possibility to save the preview as frp file.
Simple if you know it but it took me a while to discover the options meaning.
OS: Windows 11 / Linux Mint 22
       Lazarus 3.4 FPC 3.2.2
       CodeTyphon 8.50 FPC 3.3.1

 

TinyPortal © 2005-2018