Lazarus

Programming => Databases => Topic started by: berghem on February 28, 2021, 05:48:24 pm

Title: [RESOLVED]Error ExportPDF
Post by: berghem on February 28, 2021, 05:48:24 pm
Hi have an error when I convert my report (with LazReport) in PDF.
The error is "not a valid PNM image", I think the problem is my bmp image.
The problem is bmp format?



Code: [Select]

  frReport1.ShowReport;
  if frReport1.PrepareReport then
     frReport1.ExportTo(tfrtnpdfExportFilter,'test.pdf');


Code: [Select]

procedure TfrmMain.frReport1EnterRect(Memo: TStringList; View: TfrView);
begin
  if View.Name = 'img' then
    TfrPictureView(View).Picture.LoadFromFile(cmbRecipe.Text + '.bmp');
end;
Title: Re: Error ExportPDF
Post by: berghem on March 01, 2021, 02:51:36 pm
I tryed to delete two images (bmp and PNG) and without image the report works well.

The problem is image....
Title: Re: Error ExportPDF
Post by: LacaK on March 02, 2021, 10:44:39 am
Can you delete only one image at time to see which one image of two causes the problem?
Title: Re: Error ExportPDF
Post by: berghem on March 02, 2021, 09:09:44 pm
Each picture...
I tried before deleted bmp, but I had same problem after I put bmp and delete PNG but notrhing...
If I delete all image I haven't problem
Title: Re: Error ExportPDF
Post by: berghem on March 02, 2021, 09:38:57 pm
Resolved converted all image in JPG....
TinyPortal © 2005-2018