While sending attachments to print, How can I pass tray number to the printer? I am using below code to print attachments:
void PrintProcess(string FullFilePath)
{
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(FullFilePath);
info.Arguments = "\"" + cmbPrinter.Text + "\"";
info.CreateNoWindow = true;
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
info.UseShellExecute = true;
info.Verb = "PrintTo";
//System.Diagnostics.Process.Start(info);
Process p = new Process();
p.Refresh();
p.StartInfo = info;
p.Start();
if (_pdfC == 0)
_Pid = p.Id;
_pdfC++;
p.WaitForInputIdle();
info = null;
}