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
 Printer Setup ImageEnMView

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
izaque Posted - Mar 13 2012 : 07:32:14
Good morning, how can I configure the printer setup ImageEnMView to be able to print many pages?
For example 100 pages, I want to print from 10 to 93. Can you help?
4   L A T E S T    R E P L I E S    (Newest First)
izaque Posted - Mar 13 2012 : 12:13:45
Ok, Thanks!
fab Posted - Mar 13 2012 : 12:02:01
Please try this:
Printer.BeginDoc();
for imageIndex:=9 to 92 do
begin
  ImageEnMView1.MIO.PrintImage(imageIndex, Printer.Canvas); // << added Printer.Canvas
  Printer.NewPage();   // << added this
end;
Printer.EndDoc();
izaque Posted - Mar 13 2012 : 11:48:49
Okay, but now I have a problem when I walk by "ImageEnMView1.MIO.PrintImage (ImageIndex)." It released the following exception:
"Currently Printer is not printing."
What would be the "Printer.BeginDoc ()" and "Printer.EndDoc ()"?
fab Posted - Mar 13 2012 : 08:41:57
Good morning,
using code:
Printer.BeginDoc();
for imageIndex:=9 to 92 do
  ImageEnMView1.MIO.PrintImage(imageIndex);
Printer.EndDoc();


Using dialog (DoPrintPreviewDialog) you have to select the images to print and then select Print Selected Images in the dialog:
ImageEnMView1.EnableMultiSelect := true;
ImageEnMView1.MultiSelecting := true;
for imageIndex:=9 to 92 do
  ImageEnMView1.SelectedImage := imageIndex;
ImageEnMView1.MultiSelecting := false;
ImageEnMView1.MIO.DoPrintPreviewDialog();