Roger,
first let me say thank you. With this i can continue to work on my problem.
I thought of this (as dcprint say work):
@ NIL, NIL, 5.8, 100 DCPRINT BITMAP "logo.jpg" ALIGN DCPRINT_ALIGN_RIGHT PRINTER oPrinter
Here my problem:
Code: Select all
DCPRINT OPTIONS TO aOptions;
NAME drname;
SIZE drrows, drcols; // drrows = 76, drcols=103
MARGIN aMargins ;
COPIES 1 ;
CANCELENABLE ;
FONT drschrift ;
PAPERBIN drschacht ;
FORMSIZE drformsize ;
DUPLEXMODE drduplex ;
ORIENTATION drquer;
TITLE "Bitmap Sample"
DCPRINT on to oPrinter OPTIONS aOptions PREVIEW HIDE buttons aButtons
On the page the customer has a area (0,68,5.8,100) to print a logo.
The Bitmap is scaled to this area. Depending on the size of the bitmap, the result is
sometimes terrible. Some customer ask me what size must the bitmap.
So my idea was: Print the bitmap from right to left, no matter what the size is.
As i write ist, i think i must
@ 0, NIL, NIL, 100 DCPRINT BITMAP "logo.jpg" ALIGN DCPRINT_ALIGN_RIGHT PRINTER oPrinter
A other way is calculate the needing area depending on the bitmap size.
But oPrinter:nResolution give me an error (valtype is NIL)