Shell32.dll print : what are the parameters ?
Posted on 2004-10-27
I need to print a prdf file without human intervention... so i did the following program in c# :
private static extern int ShellExecuteA(IntPtr hwnd,string operation,string file,string paramters,string directory,int showcmd);
string fichier_local = @"d:\csharp\toto.pdf" ;
if (fichier_local != null) ShellExecuteA(IntPtr.Zero, "print", fichier_local, null, null, 0);
it works like a charm, but it prints to the default printer, and the default tray.
I need to specify the printer and more important the tray.
In fact the program has to print 3 pdf files,
- one using normal paper tray 1,
- one using special paper in tray 2
- one using another paper in tray 3
Could you help me ?