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
 TImageEnMIO.PrintImage & PrintImagesEx will start a second print job...

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
Andreas@DDi Posted - Dec 20 2023 : 03:36:33
TImageEnMIO.PrintImage & PrintImagesEx will start a second print job...

If you use a different way to start a print job (not using the standard TPrinter implementation of Delphi) TImageEnMIO.PrintImage & PrintImagesEx will use TPrinter to start a second print job. Even when you give the function a Printer Canvas as parameter.

While the TImageEnIO.PrintImage does not if you give it a Printer Canvas as parameter.

I think the check if a print job is running should only be done if PrtCanvas is nil like in TImageEnIO.PrintImageEx.

Here the current code, we are using ImageEn Build 12.0.0.30.7370 but I also checked in Build 13.0.0.14.5260.

TImageEnIO.PrintImageEx

    if ( PrtCanvas = nil ) and not Printer.Printing then
    begin
      callEndDoc := True;
      Printer.BeginDoc();
      if Printer.Title = '' then
        Printer.Title := IEExtractFileNameWithoutExt( Application.ExeName );
    end;


TImageEnMIO.PrintImage

    if not Printer.Printing then
    begin
      callEndDoc := True;
      Printer.BeginDoc();
      if Printer.Title = '' then
        Printer.Title := IEExtractFileNameWithoutExt( Application.ExeName );
    end;


TImageEnMIO.PrintImagesEx

    if ( bPreview = False ) and not Printer.Printing then
    begin
      callEndDoc := True;
      Printer.BeginDoc();
      if Printer.Title = '' then
        Printer.Title := IEExtractFileNameWithoutExt( Application.ExeName );
    end;

1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 20 2023 : 15:08:09
Hi

Yes, that is true. Please email me for the latest beta, which fixes this.

Nigel
Xequte Software
www.imageen.com