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
Ali Sahi
NA
3
1.4k
Unable to get number of copies of a print job in C#
Jun 27 2016 6:58 AM
I am creating a custom print job monitoring application in C# Win Forms, I am able to get most the print job information using PrintJobInfoColletion but I am not able to get number of copies here is my code so far:
PrintJobInfoCollection jobs = pq.GetPrintJobInfoCollection();
foreach
(PrintSystemJobInfo job
in
jobs)
{
string
[] row =
new
string
[] { job.JobIdentifier.ToString(),
pq.Name,
job.Name,
job.JobStatus.ToString(),
job.Submitter,
job.NumberOfPages.ToString(),
((job.JobSize / 1024f) / 1024f).ToString(
"N2"
) +
" MB"
,
job.TimeJobSubmitted.ToLocalTime().ToString() };
dataGridView1.Rows.Add(row);
}
While I tried this code to get a number of copies which is always returning me 1
var copies = job.HostingPrintQueue.CurrentJobSettings.CurrentPrintTicket.CopyCount;
Reply
Answers (
2
)
windows forms use button one click to form enable C#
getting data between two dates