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
Mohit Jagtap
NA
103
9.6k
How to get printing status in C#
Jan 18 2017 11:53 PM
Hi i am Mohit,
i have my simple function to print the document like :
public string PrintMyFile(string fileName)
{
//which gets the default printer..
PrintQueue printQueue = LocalPrintServer.GetDefaultPrintQueue();
PrintSystemJobInfo printSystemJobInfo = printQueue.AddJob(Path.GetFileNameWithoutExtension(fileName), fileName, false);
string status = printSystemJobInfo.JobStatus;
return status;
}
Here in 'status' i am getting the status as 'spooling' but i need to get the status once the document is printed. How can i do that?
I read about PrintEventArgs OnEndPrint() but i dont know how to use it. Please guide me on this.
Reply
Answers (
1
)
Can we Pass LINQ where statement as a parameter to function?
SQL query update column