Recent

Author Topic: save PDF  (Read 1595 times)

Santia70

  • New Member
  • *
  • Posts: 12
save PDF
« on: January 21, 2024, 05:20:20 pm »
I have opened an old project to see some things and I realized that now I cannot save the reports made in Lazreport with the option to save with PDF format, with frp and txt format if it works well.
With PDF I get an error window (Accsess violation)

Any ideas what to see


madref

  • Hero Member
  • *****
  • Posts: 1082
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: save PDF
« Reply #1 on: January 23, 2024, 01:12:27 am »
you could try the following:
Code: Pascal  [Select][+][-]
  1. uses lr_e_pdf;
  2.  
  3.  
  4. // this has to be a form
  5.  
  6.     frReport_Evaluatie: TfrReport;
  7.  
  8.  
  9. // in the code:
  10. frReport_Evaluatie.ExportTo(TFrTNPDFExportFilter, YourFileName + '.pdf')
  11.  
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Sonoma 14.7
Lazarus 3.99 (Lazarus 3.99 (rev main_3_99-2668-g6b352d830e) FPC 3.3.1 x86_64-darwin-cocoa)

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

Santia70

  • New Member
  • *
  • Posts: 12
Re: save PDF
« Reply #2 on: January 23, 2024, 09:15:54 am »
Thanks, I already solved it, at that time I used another package that gave me an error now, after changing to the one you told me about, everything is fine

 

TinyPortal © 2005-2018