ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 printimage, printer.canvas margins and whitespace

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bexarcv Posted - Feb 10 2015 : 14:53:33
Frequently, my users need to print multipage tiff files of reports that have a 0.5 inch margin all the way around. When I use ieIO.PrintImage with iesFITTOPAGE, it produces a printout with a one inch margin. I'm guessing the extra half inch margin is coming from printer.canvas, which gets it from the printer? In other words, my 8.5x11 inch image is being squeezed down to 7.5x10 inch so that printer.canvas can have its own 0.5 inch margin? Here is the code:

ieIO.PrintImage(Printer.Canvas,0,0,0,0,ievpCenter,iehpCenter,iesFITTOPAGE,0,0,1);

Same result if I use iesNORMAL, iesFITTOPAGESTRETCH or iesSPECIALSIZE.

My goal is to get a printout of the reports that looks like the same size as the original (same 0.5 inch margins).

I'm hoping someone has a suggestion.

Thanks.
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 10 2015 : 17:06:23
Hi

The margins specify the distance from the edge of the printer canvas rather than the page. Printers that do not offer edge to edge printing will indent the printer canvas on the page.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com