Click here to Skip to main content
15,903,030 members

Comments by loai_maane (Top 66 by date)

loai_maane 6-Dec-18 5:15am View    
Thanks a lot Dave ,
I did not get any open source libraries to print the PDF with specific printing settings like Tray number and number of copies .
In my opinion now, I should create function contact with the printers it self and change the settings especially tray number then call that function before print the PDF.what is your suggestions?
My program it is windows Application (C#)
loai_maane 4-Dec-18 8:44am View    
thanks Dave ,i will check
loai_maane 4-Dec-18 0:17am View    
thank you Dave, any other option to print the PDF with out pop up acrobat reader ?
loai_maane 3-Dec-18 12:26pm View    
string Filepath = Path.Combine(exeFolder, @"Form.pdf");

ProcessStartInfo printProcessInfo = new ProcessStartInfo()
{
Verb = "print",
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true,
FileName = Filepath,
UseShellExecute = true

};

Process printPro = new Process();
printPro.StartInfo = printProcessInfo;
printPro.Start();
printPro.WaitForInputIdle();
Thread.Sleep(6000);
if (false == printPro.CloseMainWindow())
{
printPro.Kill();
}
loai_maane 3-Dec-18 12:25pm View    
dear Dave i hope you are fine.....
i create desktop app to save the report as pdf on hard drive ,and i printed successfully, but when i print, adobe reader pop up. i try a lot of method like killing the process still same issue, please help , i want to print the pdf with out pop up the adobe reader.i will but my code as new comment kindly check