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
 How to Print on Duplex printer...?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Laser AOC

India
12 Posts

Posted - Oct 01 2019 :  04:20:37  Show Profile  Reply
Hello,

I have a need to print two files from ImageEnView to a Thermal printer which had duplex printing capabilities.

If I load the files one by one and print them the printer is printing them on one single side only.

How to can we tell the printer to print the to print the first file on one side and another on another side?

TIA

For,
Laser AOC

xequte

38222 Posts

Posted - Oct 02 2019 :  21:41:12  Show Profile  Reply
Hi

If you have enabled duplex printing, e.g.

https://www.swissdelphicenter.ch/en/showcode.php?id=1961

Then you should be able to do:

Printer.BeginDoc;
for i := 0 to im-1 do 
begin
  if i > 0 then
    Printer.NewPage
  ImageEnView1.IO.LoadFromFile('C:\image' + IntToStr( i + 1 ) + '.jpg' );
  ImageEnView1.IO.PrintImage();
end;
Printer.EndDoc;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Laser AOC

India
12 Posts

Posted - Oct 03 2019 :  00:21:22  Show Profile  Reply
Hello Nigel,

Thank you very much!!

This solution worked in my case.

Phew! You have saved my hair

TIA

For,
Laser AOC
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: