Problem when printing image
Hello,
I have a problem, when I print a report which contains an image.
When I print a report containing an image to the printer and set the
copies to more than 1, I get an access violation in module gdi32.dll.
The error doesn't occure when I set the copies to 1.
It also dosn't occure, when I remove the image from the report.
I use delphi5 enterprise, reportbuilder 7.03 enterprise, IBObjects
with IBOPipeline.
Could someone please help me with this problem?
cu
Helmut
I have a problem, when I print a report which contains an image.
When I print a report containing an image to the printer and set the
copies to more than 1, I get an access violation in module gdi32.dll.
The error doesn't occure when I set the copies to 1.
It also dosn't occure, when I remove the image from the report.
I use delphi5 enterprise, reportbuilder 7.03 enterprise, IBObjects
with IBOPipeline.
Could someone please help me with this problem?
cu
Helmut
This discussion has been closed.
Comments
What type of image are you trying to print? Are you able to see the image
in the designer at design time or at runtime? If you would like, you can
send a copy of the image to support@digital-metaphors.com and I'll test it
here on my machine.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
thank you for your answer.
I can see the image in the designer at designtime and at runtime and I
can see it in the previewwindow at runtime. When I then click on the
print button and set the number of copies to more than 1 I get the
error after pressing the ok button.
I use a simple jpg image. I do not think it is a problem of this
specific image, because the problem occures with any different image I
tried.
The realy strange thing is, that the problem only occures in
conjunction with more than 1 copies.
Another very strange thing:
Step 1: I work in the designer at runtime.
Step 2: I switch to the previewtab and then print the report using the
print button and setting the number of copies to 2 I get the error.
Step 3: Then I change to the designtab and change the image to another
one. Then I repeat step 2 and again receive the error.
After repeating step 3 and 2 some times, I suddenly get no more error.
Then it works fine every time, also when I leave my application and
start it new and do it again. Everything is o.k. with every image I
use.
After I restart my PC the error is back again.
Could you imagine any reason for this?
cu
Helmut
Ok, let's try to simplify the problem. If you simply place an empty report
object on a form, load the image and try to print more than one copy of it,
do you still get the error? Next add IBObjects into the mix keeping the
report as simple as possible. Let me know your findings so I can perhaps
recreate the issue on my machine.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I am now able to reproduce the problem with small program without any
IBObjects and even without any datapipeline.
I even fixed out when the problem comes and when not.
When I put just an image on the report and then print it with 2 cpies
and the sort checkbox under the copies field checked, then it works.
When I uncheck the sort checkbox, then the error occures.
This is reproduceabel and repeatable.
I hope you can reproduce it in this way.
Otherwise, I could send you a very small testapplication with a report
where you should be able to reproduce it.
cu
Helmut
Thanks for the information. I was a little stumped when you said the "Sort"
checkbox was unchecked, but I soon found that you meant the "Collate"
checkbox (probably a language difference). Anyway, there is a patch
available for this issue. Please send an email to
support@digital-metaphors.com requesting the patch and I'll send it right
out to you.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
email is on the way.
Many thanks for your help.
Helmut