TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hariharan Krishnamoorthi
NA
706
169.5k
PDF Silent Printing not working in IIS using C# Process !!!
Dec 8 2017 2:36 AM
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
;
Reply
Answers (
2
)
Need to Show 'NOIMAGE' if no image in datalist ?..,
Pass textbox 's value from redirected page into other page