PNG Image

edited August 2010 in FastReport 4.0
I have PNG images in my table in the DB. When I am in design mode, the images appears fine when I preview the report absolutely no errors. When I run the report from my program, I get an "Integer overflow" error. The only difference I can think of it when in design mode the report is loaded from a file. When running the report from the program, the report is loaded from a stream. Any ideas? Thanks.

Forgot to mention that using JPEG in the exact same scenario works just fine.

I have determined that I don't even need to connect to DB to get this error. I created a report with only an image on it. I assigned a PNG image. In the designer it runs without error. When running the report from the program, I get 'Integer overflow'.

Comments

  • edited 12:29PM
    hawkman wrote: »
    I have PNG images in my table in the DB. When I am in design mode, the images appears fine when I preview the report absolutely no errors. When I run the report from my program, I get an "Integer overflow" error. The only difference I can think of it when in design mode the report is loaded from a file. When running the report from the program, the report is loaded from a stream. Any ideas? Thanks.

    Forgot to mention that using JPEG in the exact same scenario works just fine.

    I have determined that I don't even need to connect to DB to get this error. I created a report with only an image on it. I assigned a PNG image. In the designer it runs without error. When running the report from the program, I get 'Integer overflow'.

    Alas, I figure out the problem. Under Project Options->Compiler->Runtime errors I have 'Overflow checking' selected. Strange but true.
  • edited May 2013
    do you want to c# convert images to jepg , so that everything will work fine with you.

Leave a Comment