Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print tiff files automatically?

Tags:

c#

.net

I have a folder which will contain only one tiff file at a time, so the moment I receive one I should be able to print it to the default printer. I have a small Windows application which is looking for any tiff files in the particular folder. I just have to print it to the default printer the moment a tiff file is received.

Does anyone have any idea how to do this using C#?

like image 430
Yaser Ahmed Avatar asked Aug 05 '09 14:08

Yaser Ahmed


People also ask

How do I print a TIFF file?

Open the TIFF image you would like to convert to PDF with the Photo app, then press "Ctrl + P" on your keyboard to open the "Print" option. If you want to convert multiple TIFF files to a PDF, just organize the TIFF files in advance and select them all with your mouse, then press the "Print" shortcuts.

Can a TIFF file be printed?

You can select and print files in the TIFF format from a USB flash drive or other device.

Is it better to print from a TIFF or a PDF?

In general “Normal” PDF files will offer the best quality for printing and viewing, as the bitmaps stored in TIFFs or image PDFs by their nature have a limited resolution. However, for most practical purposes the image quality of TIFFs at a suitable resolution will be sufficient.

Where can I print TIFF images?

Nations Photo Lab Both Nations Photo Lab and AdoramaPix accept images in TIFF format, which is especially important for serious photographers seeking professional photo printing.


1 Answers

As OP said in the question, this can be done with this piece of code:

System.Diagnostics.Process printProcess = new System.Diagnostics.Process();
printProcess.StartInfo.FileName = strFileName;
printProcess.StartInfo.Verb = "Print";
printProcess.StartInfo.CreateNoWindow = true;
printProcess.Start();
like image 133
4 revs, 2 users 94% Avatar answered Sep 28 '22 01:09

4 revs, 2 users 94%