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
 Print from ImageEn without Showing PreviewDialog

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
yogiyang Posted - Mar 24 2017 : 10:01:47
Hello,

How to get ImageEn to print its contents without showing Print Preview Dialog.

It should just show the Print Dialog from where a user can select printer and set its properties, etc.

TIA


Yogi Yang
4   L A T E S T    R E P L I E S    (Newest First)
skippix Posted - Feb 26 2018 : 12:02:45
should also note that you may have to add unit imageenio to uses clause.
xequte Posted - Mar 25 2017 : 20:53:40
Hi Yogi,

Those are built-in functions.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
yogiyang Posted - Mar 25 2017 : 04:42:27
Hello Bill,

Thanks a load. I was actually hoping for a built in function from IE but anyways...

This did the trick.

TIA


Yogi Yang
w2m Posted - Mar 24 2017 : 14:20:37

if PrinterSetupDialog1.Execute then
begin
  // Print the image in the center of the page at the original size
  Printer.BeginDoc;
  ImageEnView1.IO.PrintImage(Printer.Canvas, 0, 0, 0, 0, ievpCenter,    
    ievpCenter, iesNormal, 0, 0, 1);
  Printer.EndDoc;

  // Print the image in the center of the page stretched to page dimensions
  (respecting the proportions)
  Printer.BeginDoc;
  ImageEnView1.IO.PrintImage(Printer.Canvas, 0, 0, 0, 0, ievpCenter,  
    iehpCenter, iesFitToPage, 0, 0, 1);
  Printer.EndDoc;

  // Print the image as a poster, four pages wide and six pages high
  Printer.BeginDoc;
  ImageEnView1.IO.PrintImage(Printer.Canvas, 0, 0, 0, 0, ievpCenter, 
    iehpCenter, iesMultiplePages, 4, 6, 1);
  Printer.EndDoc;

  // Print all pages of a TIFF
  Printer.BeginDoc;
  for I := 0 to ImageEnView1.IO.Params.ImageCount - 1 do
  begin
    ImageEnView1.IO.Params.ImageIndex := I;
    ImageEnView1.IO.LoadFromFile('C:\input.tif');
    ImageEnView1.IO.PrintImage(Printer.Canvas);
  end;
  Printer.EndDoc;
end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development