Click here to Skip to main content
15,905,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: please help me in C# Pin
Pete O'Hanlon23-Sep-07 22:45
mvePete O'Hanlon23-Sep-07 22:45 
AnswerRe: please help me in C# Pin
Pete O'Hanlon24-Sep-07 0:00
mvePete O'Hanlon24-Sep-07 0:00 
AnswerRe: please help me in C# Pin
Amar Chaudhary24-Sep-07 0:44
Amar Chaudhary24-Sep-07 0:44 
GeneralRe: please help me in C# Pin
Malcolm Smart24-Sep-07 0:51
Malcolm Smart24-Sep-07 0:51 
GeneralRe: please help me in C# Pin
Amar Chaudhary24-Sep-07 1:27
Amar Chaudhary24-Sep-07 1:27 
GeneralRe: please help me in C# Pin
Malcolm Smart24-Sep-07 1:45
Malcolm Smart24-Sep-07 1:45 
GeneralRe: please help me in C# Pin
J4amieC24-Sep-07 1:58
J4amieC24-Sep-07 1:58 
GeneralRe: please help me in C# Pin
martin_hughes24-Sep-07 1:29
martin_hughes24-Sep-07 1:29 
Questionhow to make HTML Page Pin
Jintal Patel23-Sep-07 20:37
Jintal Patel23-Sep-07 20:37 
AnswerRe: how to make HTML Page Pin
Christian Graus23-Sep-07 21:06
protectorChristian Graus23-Sep-07 21:06 
GeneralRe: how to make HTML Page Pin
Jintal Patel23-Sep-07 21:27
Jintal Patel23-Sep-07 21:27 
GeneralRe: how to make HTML Page Pin
Malcolm Smart23-Sep-07 21:32
Malcolm Smart23-Sep-07 21:32 
GeneralRe: how to make HTML Page Pin
Jintal Patel23-Sep-07 21:57
Jintal Patel23-Sep-07 21:57 
GeneralRe: how to make HTML Page Pin
Malcolm Smart23-Sep-07 22:06
Malcolm Smart23-Sep-07 22:06 
Questionsend byte array to a printer and reading back through a serial port Pin
bttds23-Sep-07 20:36
bttds23-Sep-07 20:36 
AnswerRe: send byte array to a printer and reading back through a serial port Pin
Christian Graus23-Sep-07 21:04
protectorChristian Graus23-Sep-07 21:04 
GeneralOT Pin
Pete O'Hanlon23-Sep-07 21:47
mvePete O'Hanlon23-Sep-07 21:47 
GeneralRe: send byte array to a printer and reading back through a serial port Pin
bttds23-Sep-07 22:22
bttds23-Sep-07 22:22 
AnswerRe: send byte array to a printer and reading back through a serial port Pin
Guffa23-Sep-07 22:50
Guffa23-Sep-07 22:50 
GeneralRe: send byte array to a printer and reading back through a serial port Pin
bttds23-Sep-07 23:34
bttds23-Sep-07 23:34 
QuestionPrinting a file using process object Pin
gauthee23-Sep-07 20:04
gauthee23-Sep-07 20:04 
AnswerRe: Printing a file using process object Pin
blackjack215024-Sep-07 0:23
blackjack215024-Sep-07 0:23 
gauthee wrote:
i have used the process and process start info objects and could complete the task bu the constraint is while printing the original file is being opened!


You mean is opened in Word of Excel, etc?

If so, one solution would be to wait until the file has been sent to the printer(by periodically checking the number of print jobs) and after that close the main application.

The first part can be achieved with this(code suggested by Martin#):

ObjectQuery qry = new ObjectQuery("SELECT * FROM Win32_PrintJob");<br />
ManagementObjectSearcher srchr = new ManagementObjectSearcher(qry);<br />
ManagementObjectCollection coll = srchr.Get();<br />
<br />
int initialJobs = coll.Count;<br />
<br />
while (coll.Count == initialJobs)<br />
{<br />
  System.Threading.Thread.Sleep(10);<br />
  coll = srchr.Get();<br />
}


Good luck!
QuestionCompare 2 datasets Pin
Anu SE23-Sep-07 19:57
Anu SE23-Sep-07 19:57 
AnswerRe: Compare 2 datasets Pin
gauthee23-Sep-07 20:19
gauthee23-Sep-07 20:19 
AnswerRe: Compare 2 datasets Pin
Jintal Patel23-Sep-07 20:50
Jintal Patel23-Sep-07 20:50 

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.