Recent

Author Topic: Problem with TRLImage (Fortes Report)  (Read 2886 times)

rretamar

  • New Member
  • *
  • Posts: 39
Problem with TRLImage (Fortes Report)
« on: January 16, 2018, 03:09:17 pm »
Hi.
I write a simple program with Fortes Report: a empty report with a header-band contain a image (using TRLImage). When try to print the page, the ide show error "bitmap with unknown compression" into intfgraphics.pas .

Any idea ?


valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Problem with TRLImage (Fortes Report)
« Reply #1 on: January 16, 2018, 05:03:48 pm »
What OS/version are you using?
What Lazarus and FPC/versions are you using?
What FortesReport (original or forks)/version are you using?
Please, attach a simple and small sample project.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Problem with TRLImage (Fortes Report)
« Reply #2 on: January 16, 2018, 05:34:24 pm »
Just a shot in the dark:

-------------------------------
http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-January/096943.html
[Lazarus] Unexpected error from intfgraphics.pas when running GPIO test program

I have created a new Lazarus environment on a Raspberry Pi2B by
starting from a new Raspbian Jessie image and installing FPC 3.0.0 and
Lazarus 1.6RC2 from svn sources.
I also installed Indy 10.6.2 into the IDE.
All of that worked fine.

Today I opened an old gpio test project, which worked fine in Lazarus
back in October 2015. It is a really simple project with just 4
buttons, 2 TShape indicators and 1 TMemo to display progress messages
dropped on the standard default form on a new project.
It was stored in version control (CVS).

I have tried to Compile and run and also to Build and run this
program. Both build and compile works OK but the Run command does not.

It gives the following exception messages now:

---------------------------------------------------------------
Debugger Exception Notification
Project gpiotest raised exception class 'FPImageException' with
message:
Bitmap with unknown compression (21060)
In file 'intfgraphics.pas' at line 5709
           [Break]     [Continue]
----------------------------------------------------------------

Bo Berglund
Developer in Sweden
-------------------------------
http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-January/096944.html

Found the problem!
There is an <projectname>.ico file created when the project builds and
this file was corrupted.
I found an old backup on my laptop and that file displayed an image
icon (Lazarus) in Windows Explorer while the non-working file did not.
They differed about 1 KB i size too (both were unimaginably large, 134
KB for an icon!).

When I copied the backup file on top of the faulty one Lazarus was
satisfied. But I tried first to just delete it in the RPi2 project
dir, it still had the same problem. Only replacing it with a good file
solved the problem.

How such an erroneous file can cause the observed results it hard for
me to understand, especially why the actual culprit is not mentioned.

But now my GPIO test program runs fine (as user pi) and I can pull and
release the attached relays.

--
Bo Berglund
Developer in Sweden
-------------------------------

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Problem with TRLImage (Fortes Report)
« Reply #3 on: January 16, 2018, 05:35:56 pm »
Just another shot in the dark:

Trying to show Bitmap photo, get error Bitmap with unknown compression.
http://forum.lazarus.freepascal.org/index.php?topic=17579.0

rretamar

  • New Member
  • *
  • Posts: 39
Re: Problem with TRLImage (Fortes Report)
« Reply #4 on: January 17, 2018, 03:02:59 am »
Thanks.

Sorry. I using the Codetyphon IDE 64 bits versión 6.3

 

TinyPortal © 2005-2018