How can I print a TIF file programmatically?
I have been banging my head against the wall for over two weeks now trying to find a way to programmatically print TIF files, without the need to for user interaction. The catch to this is that the files are well data logs, which turn out to be very large TIF files that, when printed, will span multiple pages.
Right now the company is using a Neuralaser printer in conjunction with a NeuraView application that is able to print the images out across multiple pages for them, but it takes the user opening up each TIF file and using the print command.
I have tried a few third party components, and they do not accomplish what I need. I have tried to use the Win32 API (OpenPrinter, WritePrinter, ClosePrinter, ETC), but all I get back are errors when I try to open the file as a bitstream and feed it to the WritePrinter API. I can't find any good documentation on how I would even begin to accomplish my goal. I need some help and direction, if anyone could please help me out.
[988 byte] By [
AnthonyH] at [2007-12-28]
Hate to ask, but can you be a little more specific when you say
attach to the PrintDocument.Print page? I'm writing this application as an executable that will run server side, so there is no user interface to speak of. How does the document_PrintPage event fire?
Hello,
I tried that code and it worked great, but I need to go a step further. how do I get it to loop so that every tif file in a specific folder is printed. better yet how do I get the program to print every tif file in the order they are listed on an existing Excel sheet.
This would be a GREAT help, thank you,
jordan