Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
PDF Silent Printing not working in IIS using C# Process !!!
Hariharan Krishnamoorthi
Dec 8 2017 2:36 AM
228
Reply
Dear all,
I am trying to do autoprinting option using ASP.Net webapplication with some SSIS packages.
In my requirement, i need to auto print the pdf file with below codes. It is working when i am debugging in Visual studio. But when i deploy the files in IIS, It is not auto printing.
Please help me on this. Do i need to enable any properties in Windows server 2008.
Thanks in advance.
string
arguments = arugumentValue;
// /t "D:\\Temp_Report.pdf" "\\TestPrinter_one"
string
executable=
"C:\\Program Files\\Adobe\\Reader 8.0\\Reader\\AcroRd32.exe"
int
waitingTime = 18000;
ProcessStartInfo starter =
new
ProcessStartInfo(executable, arguments);
starter.CreateNoWindow =
true
;
starter.WindowStyle = ProcessWindowStyle.Hidden;
starter.UseShellExecute =
false
;
Process process =
new
Process();
process.StartInfo = starter;
process.Start();
process.WaitForExit(waitingTime);
// hold the process for some seconds so that PDF
//files can be sent
process.CloseMainWindow();
process.Kill();
starter =
null
;
process =
null
;
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Need to Show 'NOIMAGE' if no image in datalist ?..,
Pass textbox 's value from redirected page into other page