I have a small problem using StretchDraw to the printer canvas. The problem is that the image is not visible when the report is printed on the printer or printed to Acrobat. This section of the code has been newly written. This has been seen on different computers with the same results.
The size and position are correct (I only know this because if I use CopyMode cmBlackness, the correct image size and location are evident. I know that the image was successfully loaded because I did a test StretchDraw to a TImage canvas (using different DrawRect) after the StretchDraw to the printer canvas and the image was visible.
I have tried various CopyModes without success. This has been primarily tested under Windows 98.
What is happening?
With Printer.Canvas Do
ShowMessage('Error reading logo: '+Cfg.LogoName);