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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

739 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