Solved

how can i print a tiff file in c# through the printdialog and pass the number of copies to print?

Posted on 2011-03-21
1
1,495 Views
Last Modified: 2012-05-11
how can i print a tiff file in c# through the printdialog and pass the number of copies to print?
0
Comment
Question by:cbrune
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
khan_webguru earned 500 total points
ID: 35181932
Hello Bro!

You can print .tiff image by using following code:

 
PrintDocument printDocument = new PrintImage { ImageToPrint = Image.FromFile(path) };

var ppd = new PrintDialog
{
Document = printDocument
};

if (ppd.ShowDialog() == DialogResult.OK)
{

printDocument.Print();

}

Open in new window


Following link can also be helpful for you.

http://www.snowbound.com/tech_tips/p_multi_tiff.html

Regards,

Asif Ahmed Khan
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question