Hi,
Im trying for 2 days to solve a problem but now Im on a point where all
ideas exhausted. Im writing a software to print out some cards containing
richtext and images.
To print the richtext im using an windows api call (Sendmessage
EM_FORMATRANGE -
http://msdn.microsoft.com/library/de...chTextBox.asp).
Because I have to print background images, the richtext background should be
transparent. Ive found no way to do this directly, so I tried to create a
temporary bitmap, render the richtext into it, eliminate all the whity
pixels and copy it to output. Works great on display but sucks on printer.
It seems that the windows api renders always with 96dpi into my graphic
object. This is to less for text and the text looks terrible. When Im
rendering directly to the printer output, I get an absolutly clear output.
Changing the resolution of the bitmap has no effect...
So now I have to choose betwheen 96dpi font or a hole in the background
image and Im very unhappy about that :-(
Has someone any suggestions to fix that problem or (best way) to render
richtext directly with transparent background?
If someone wants to take a look, I uploaded the whole sourcesfiles to my
webserver.
http://www.thanei.net/druck.zip
Thanks for any help,
Lukas
(replies in german or italian are welcome)