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