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 7:22AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.