Click to See Complete Forum and Search --> : sending common files to printer


DukeII
June 25th, 2005, 08:21 AM
Hy,

I'm trying to create a class which sends files (common file formats - xls, pdf, txt, jpg) to
a specified printer and a specified paper slot.

My problems are:

- Doing it with Process.Start (verb "print" or "printto") is a good and quick method,
but i have to set the paper slot for each document. (Is there another possibility?)
- The function should be dynamic for all file types, that means, I do not want to make a class
for every file type (PDFDocument, TXTDocument etc...)

The best solution for me would be a function like this:

public void PrintFile(string FileName, string PrinterName, string PaperSlot)
{
...
}

Maybe there's a component or something else which is solving my problem. I'm already sick of searching...

I'm thankful for every answer.

Greez && Thx

darwen
June 25th, 2005, 07:15 PM
Firstly, you appear too used to the C way of doing things - you need to write a class to do what you want.

Secondly, sorry I don't know how to do this.

Darwen.