Recent

Author Topic: [RESOLVED]Error ExportPDF  (Read 1389 times)

berghem

  • Jr. Member
  • **
  • Posts: 60
[RESOLVED]Error ExportPDF
« 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;
« Last Edit: March 02, 2021, 09:39:14 pm by berghem »

berghem

  • Jr. Member
  • **
  • Posts: 60
Re: Error ExportPDF
« Reply #1 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....

LacaK

  • Hero Member
  • *****
  • Posts: 691
Re: Error ExportPDF
« Reply #2 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?

berghem

  • Jr. Member
  • **
  • Posts: 60
Re: Error ExportPDF
« Reply #3 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

berghem

  • Jr. Member
  • **
  • Posts: 60
Re: Error ExportPDF
« Reply #4 on: March 02, 2021, 09:38:57 pm »
Resolved converted all image in JPG....

 

TinyPortal © 2005-2018