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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 printimage, printer.canvas margins and whitespace
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bexarcv

USA
4 Posts

Posted - Feb 10 2015 :  14:53:33  Show Profile  Reply
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.

xequte

38615 Posts

Posted - Feb 10 2015 :  17:06:23  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: