* * *

Author Topic: FIXED crash with LazReport exporting to PDF with PowerPDF  (Read 447 times)

mobilevil

  • New member
  • *
  • Posts: 5
FIXED crash with LazReport exporting to PDF with PowerPDF
« on: June 19, 2017, 11:31:17 am »
Hello,
I am playing around with Lazarus 1.6.4 on Windows 7 64 bit, firebird 3, Zeos Access and LazReport.

I am setting up a ZQuery with the firebird sample database, SELECT * from employee, a DBNavigator, DBGrid1, simple.

Report designer is fine, printing is fine, HTML export is fine, but PDF export with TfrTNPDFExportFilter crashes all the time.
Project project1 raised exception class 'External:SIGSEGV'.

I tried a debug build but I am not able to step into it. The code is like this.
  frReport1.PrepareReport;
  frReport1.ExportTo(TfrTNPDFExportFilter, 'test.pdf');   

html export and cario export PDF are fine, though.

frReport1.ExportTo(TlrCairoExportFilter, 'test.pdf');   
frReport1.ExportTo(TfrHTMExportFilter, 'test.html');     

I wonder if the PowerPDF export filter is still maintained? the power PDF readme is pretty old.
« Last Edit: June 19, 2017, 03:50:57 pm by mobilevil »

Handoko

  • Hero Member
  • *****
  • Posts: 1326
  • My goal: build my own game engine using Lazarus
Re: crash with LazReport exporting to PDF with PowerPDF
« Reply #1 on: June 19, 2017, 11:44:58 am »
Hello mobilevil,
Welcome to the forum.

Can you please provide a demo showing the bug, so we can compile and try? Compress all the necessary files (include the sample database), except the binary, *.bak and lib folder. Send the zip file to this forum.

mobilevil

  • New member
  • *
  • Posts: 5
Re: crash with LazReport exporting to PDF with PowerPDF
« Reply #2 on: June 19, 2017, 12:38:53 pm »


I am using the GTK dlls here for cairo based PDF exporting which works.
http://paweld.it/libcairo_dll.7z

Zeos lib,
ZEOSDBO-7.1.4-stable.zip

the employee.fdb is sitting here, which is only standard firebird 3.0 64bit install. Firebird-3.0.2.32703_0_x64.exe
C:\Program Files\Firebird\Firebird_3_0\examples\empbuild

mobilevil

  • New member
  • *
  • Posts: 5
Re: crash with LazReport exporting to PDF with PowerPDF
« Reply #3 on: June 19, 2017, 02:41:32 pm »
I have re-installed everything in home PC and it is working fine!

originally I tried to install lazreport from https://sourceforge.net/projects/lazreport/ and failed, and found that lazreport is actually bundled in lazarus. it is possible that something is left behind.

I was using powerpdf_0.9.15_20170215.tar.gz (should be svn revision 5748) in the office , and I am using latest SVN revision 5770 at home. I double checked, both 5748 and 5770 are working fine.

I will double check with office PC again. Thanks for your help.

UPDATE: I reinstalled Lazarus and recompiled the libs and it is now OK. Thanks.
« Last Edit: June 19, 2017, 03:52:04 pm by mobilevil »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus