Click here to Skip to main content
15,885,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: I wan to make USB Bolcker using vb.net or C# Pin
Deb0078-Oct-14 21:26
Deb0078-Oct-14 21:26 
QuestionRe: I wan to make USB Bolcker using vb.net or C# Pin
George Jonsson9-Oct-14 16:28
professionalGeorge Jonsson9-Oct-14 16:28 
AnswerRe: I wan to make USB Bolcker using vb.net or C# Pin
Deb0079-Oct-14 19:30
Deb0079-Oct-14 19:30 
GeneralRe: I wan to make USB Bolcker using vb.net or C# Pin
George Jonsson9-Oct-14 21:20
professionalGeorge Jonsson9-Oct-14 21:20 
AnswerRe: I wan to make USB Bolcker using vb.net or C# Pin
Sibeesh KV26-Sep-14 0:19
professionalSibeesh KV26-Sep-14 0:19 
Questionretrieving contents from word file using c# windows application Pin
Reshma Chandran24-Sep-14 18:31
Reshma Chandran24-Sep-14 18:31 
AnswerRe: retrieving contents from word file using c# windows application Pin
Sibeesh KV24-Sep-14 18:36
professionalSibeesh KV24-Sep-14 18:36 
QuestionPrintTicket in GetPrintJobInfoCollection? Pin
murali_utr24-Sep-14 18:28
murali_utr24-Sep-14 18:28 
Here is my code. I Get the printticket from print job. I Need Printjob informations like copycount, media size, media type, duplex printing and other details. But I can default values from the printticket like copycount is always 1 and sometime no. of pages in job also comes 0. Now struggle with this problem. I Need Help to solve this problem.

PrintServer myPrintServer = new PrintServer(@"\\MyMachine");

PrintQueueCollection myPrintQueues = myPrintServer.GetPrintQueues();
foreach (PrintQueue pq in myPrintQueues)
{

if (pq.QueueStatus != PrintQueueStatus.Error)
{
foreach (PrintSystemJobInfo job in pq.GetPrintJobInfoCollection())
{
if (bNewJob == true)
{
PrintTicket pt = job.HostingPrintQueue.CurrentJobSettings.CurrentPrintTicket;
UpdateText("Current Copies : " + pt.CopyCount.Value.ToString());
UpdateText("Default Copies : " + dpt.CopyCount.Value.ToString());
UpdateText("User Copies : " + upt.CopyCount.Value.ToString());
UpdateText("Full Name :" + job.HostingPrintQueue.FullName.ToString());
UpdateText("Job ID : " + job.JobIdentifier.ToString());
UpdateText("Job Name : " + job.JobName.ToString());
DateTime dt = job.TimeJobSubmitted;
UpdateText("Submitter :" + job.Submitter.ToString());
UpdateText("Date:"+dt.Day.ToString()+"/"+dt.Month.ToString()+"/"+ dt.Year.ToString());
UpdateText("Hosted Server :" + job.HostingPrintServer.Name.ToString());
UpdateText("No of Pages :" + job.NumberOfPages.ToString());
}
}
}
}
Have A Nice Day!
Murali.M

Blog

QuestionRefactor 'switch/case' That Is Based Enum Value Pin
Matt U.24-Sep-14 9:48
Matt U.24-Sep-14 9:48 
AnswerRe: Refactor 'switch/case' That Is Based Enum Value Pin
Pete O'Hanlon24-Sep-14 10:07
mvePete O'Hanlon24-Sep-14 10:07 
AnswerRe: Refactor 'switch/case' That Is Based Enum Value Pin
PIEBALDconsult24-Sep-14 10:54
mvePIEBALDconsult24-Sep-14 10:54 
Questionintegrate any bill acceptor in my c# application Pin
MaurizioFiorentino24-Sep-14 7:19
MaurizioFiorentino24-Sep-14 7:19 
AnswerRe: integrate any bill acceptor in my c# application Pin
ZurdoDev24-Sep-14 10:05
professionalZurdoDev24-Sep-14 10:05 
GeneralRe: integrate any bill acceptor in my c# application Pin
MaurizioFiorentino30-Sep-14 6:47
MaurizioFiorentino30-Sep-14 6:47 
AnswerRe: integrate any bill acceptor in my c# application Pin
ZurdoDev30-Sep-14 7:15
professionalZurdoDev30-Sep-14 7:15 
QuestionCoding music rhythms Pin
Navid Abyazi24-Sep-14 5:27
professionalNavid Abyazi24-Sep-14 5:27 
QuestionRe: Coding music rhythms Pin
ZurdoDev24-Sep-14 5:53
professionalZurdoDev24-Sep-14 5:53 
AnswerRe: Coding music rhythms Pin
Navid Abyazi25-Sep-14 7:00
professionalNavid Abyazi25-Sep-14 7:00 
QuestionRe: Coding music rhythms Pin
ZurdoDev25-Sep-14 7:17
professionalZurdoDev25-Sep-14 7:17 
GeneralRe: Coding music rhythms Pin
PIEBALDconsult24-Sep-14 6:09
mvePIEBALDconsult24-Sep-14 6:09 
GeneralRe: Coding music rhythms Pin
BillWoodruff24-Sep-14 22:06
professionalBillWoodruff24-Sep-14 22:06 
GeneralRe: Coding music rhythms Pin
PIEBALDconsult25-Sep-14 6:22
mvePIEBALDconsult25-Sep-14 6:22 
GeneralRe: Coding music rhythms Pin
Navid Abyazi25-Sep-14 7:15
professionalNavid Abyazi25-Sep-14 7:15 
GeneralRe: Coding music rhythms Pin
PIEBALDconsult26-Sep-14 8:08
mvePIEBALDconsult26-Sep-14 8:08 
AnswerRe: Coding music rhythms Pin
Pete O'Hanlon24-Sep-14 8:40
mvePete O'Hanlon24-Sep-14 8:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.