Recent

Author Topic: LazReport Linux cups-pdf  (Read 1345 times)

makgab

  • Jr. Member
  • **
  • Posts: 55
LazReport Linux cups-pdf
« on: February 05, 2016, 08:17:00 pm »
Hi!
I tried the lazreport on Linux: lazarus-1.4.4-1.fc23.x86_64
I set the printer cups-pdf then values of some fields didn't appear. (But some values appeared!)

I use the LazReport like this:
Code: Pascal  [Select]
  1. // for example
  2. procedure RunReport();
  3. ...
  4. DM.SQLQuery.Close;
  5. DM.SQLQuery.ParamByName('param1').AsInteger;
  6. DM.SQLQuery.Open; // report1.lrf uses this query --->   [DM.SQLQuery."result1"]
  7.  
  8. frReport.LoadFromFile('report1.lrf');
  9. if ( not frReport.PrepareReport ) then Exit;
  10. for i:=1 to Copies do begin
  11.   FromPage:=1;
  12.   ToPage:=frReport.EMFPages.Count;
  13.   frReport.PrepareReport;
  14.   frReport.PrintPrepareReport( ... );
  15. end;
  16. ...
  17.  

Is it LazReport bug or cups-pdf bug? Or something else?