Lazarus
Free Pascal => Database => Topic started by: mobilevil 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.
-
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.
-
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
-
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.