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,452 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio 2013 debugging 2 35
ADO.NET ENTITY DATA MODEL 3 32
Eagerly loading related objects in entity framework 5 26
C#.NET and microsoft certification. 3 34
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
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
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now