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
 [IEvolution] How to print multipage TIFF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

newinf

12 Posts

Posted - Jul 15 2011 :  03:46:21  Show Profile  Reply
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.

fab

1310 Posts

Posted - Jul 15 2011 :  10:06:16  Show Profile  Reply
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();
Go to Top of Page

Abigail

Netherlands
3 Posts

Posted - Sep 09 2013 :  02:23:32  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: