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
 [IEvolution] How to print multipage TIFF

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
newinf Posted - Jul 15 2011 : 03:46:21
Hi,

With this code snippet i can print the current image loaded in a IEViewer.

ieViewer1.Image.SaveUndo();
ieViewer1.Image.Annotations.MergeObjects(false); ieViewer1.Image.PrintPreviewDialog(IEImage.PrintDialogs.Dialog, currentPagFile, true);
ieViewer1.Image.Undo();

It works, but now i need print a multipage tiff (print all pages document) showing annotations too. Also, the process must be in transparent mode (not showing PrintDialogs).

How can i do this?.

Thanks in advance.
2   L A T E S T    R E P L I E S    (Newest First)
Abigail Posted - Sep 09 2013 : 02:23:32
Hello
If you want to print multipage tiff files ,you can refer to the following code:
using System.IO;
using System.Drawing.Printing;
using RasterEdge.Imaging;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.MultipageTiff;

RasterEdgeImaging TIFF = new RasterEdgeImaging();

public void TiffProcessorPrint();
{
TIFFInputFile = (@"C:/1.tif");
TIFFPageNumberStart = "0";
TIFFPageNumberStop = "4";
Printer = (@"C:/ HP Color LaserJet 5550 PCL 6");
};
TIFF. TiffProcessorPrint(@"C:/1.tif", "0","4", @"C:/ HP Color LaserJet 5550 PCL 6");

just believe yourself
fab Posted - Jul 15 2011 : 10:06:16
If you don't want IEMulti component (which is dedicated to multi page images), you have to loop all images, and use IEImage.PrintImage instead of PrintPreviewDialog.


int imageCount = IEImage.GetFileFramesCount(filename);
IEImage.PrintBegin();
for (int i=0; i < imageCount; ++i)
{
  // load frame "i" from "filename"
  ieViewer1.Image.IOParams.ImageIndex = i;
  ieViewer1.Image.LoadImage(filename);
  // print
  ieViewer1.Image.Annotations.MergeObjects(false); 
  ieViewer1.Image.PrintImage(0,0,0,0,PrintVerticalPos.Center,PrintHorizontalPos.Center,1);
}
IEImage.PrintEnd();