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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 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

15 Experts available now in Live!

Get 1:1 Help Now