Click here to Skip to main content
15,891,733 members
Home / Discussions / C#
   

C#

 
QuestionAre theses the same: object.Equal(obj,null) and obj == null? Pin
Christopher Stratmann6-Jun-07 1:31
Christopher Stratmann6-Jun-07 1:31 
AnswerRe: Are theses the same: object.Equal(obj,null) and obj == null? Pin
Guffa6-Jun-07 1:54
Guffa6-Jun-07 1:54 
GeneralRe: Are theses the same: object.Equal(obj,null) and obj == null? Pin
S. Senthil Kumar6-Jun-07 4:48
S. Senthil Kumar6-Jun-07 4:48 
GeneralRe: Are theses the same: object.Equal(obj,null) and obj == null? Pin
Guffa6-Jun-07 21:56
Guffa6-Jun-07 21:56 
QuestionBinding DataReader to DataGrid Pin
S Palip6-Jun-07 1:16
S Palip6-Jun-07 1:16 
AnswerRe: Binding DataReader to DataGrid Pin
Harini N K6-Jun-07 2:14
Harini N K6-Jun-07 2:14 
GeneralRe: Binding DataReader to DataGrid Pin
S Palip6-Jun-07 16:07
S Palip6-Jun-07 16:07 
QuestionPrint PDF via AcrobatReader and close it afterwards Pin
blackjack21506-Jun-07 1:11
blackjack21506-Jun-07 1:11 
Hi.
I want to print a pdf file from C# code.
For this I found a "not-very-elegant, but will-do-for-now" type of solution:

Call AcrobatReader with command line parameters which tell it to print the file:
System.Diagnostics.Process.Start("C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\Acrord32.exe",<br />
                "/t \"mytest.pdf\" \"MyWindowsPrinterName\"");


It works, but the drawback is that the AcrobatReader program is opened and stays open afterwards. It starts minimized thanks to the "/t" parameter in the call, but it's still open.

So I'm thinkin' of killin' the AcroRd32.exe process after it has completed it's mission.

Now the question: When can the AcroRd32 process be killed without fear of undesirable side-efects(exceptions, etc)?
If I kill it immediately after the call, the file never gets printed.
How can I check that the print job has been enqueued to the printer?

Thanks for having the patience to read.
AnswerRe: Print PDF via AcrobatReader and close it afterwards Pin
Seishin#6-Jun-07 1:50
Seishin#6-Jun-07 1:50 
GeneralRe: Print PDF via AcrobatReader and close it afterwards Pin
ScottM16-Jun-07 2:01
ScottM16-Jun-07 2:01 
GeneralRe: Print PDF via AcrobatReader and close it afterwards Pin
Seishin#6-Jun-07 2:12
Seishin#6-Jun-07 2:12 
GeneralRe: Print PDF via AcrobatReader and close it afterwards Pin
blackjack21506-Jun-07 2:01
blackjack21506-Jun-07 2:01 
GeneralRe: Print PDF via AcrobatReader and close it afterwards Pin
ScottM16-Jun-07 2:19
ScottM16-Jun-07 2:19 
GeneralRe: Print PDF via AcrobatReader and close it afterwards Pin
jethomas414-Oct-09 6:07
jethomas414-Oct-09 6:07 
GeneralRe: Print PDF via AcrobatReader and close it afterwards Pin
blackjack215015-Oct-09 1:08
blackjack215015-Oct-09 1:08 
QuestionRe: Print PDF via AcrobatReader and close it afterwards Pin
M. J. Jaya Chitra7-Jun-07 18:12
M. J. Jaya Chitra7-Jun-07 18:12 
Questionwant to change the property of column header in datagridview Pin
devesh_code6-Jun-07 0:17
devesh_code6-Jun-07 0:17 
AnswerRe: want to change the property of column header in datagridview Pin
Praveen Raghuvanshi6-Jun-07 0:43
professionalPraveen Raghuvanshi6-Jun-07 0:43 
GeneralRe: want to change the property of column header in datagridview Pin
devesh_code6-Jun-07 2:38
devesh_code6-Jun-07 2:38 
QuestionWindows service communication` Pin
M. J. Jaya Chitra6-Jun-07 0:05
M. J. Jaya Chitra6-Jun-07 0:05 
AnswerRe: Windows service communication` Pin
ganti.r6-Jun-07 1:02
ganti.r6-Jun-07 1:02 
AnswerRe: Windows service communication` Pin
WillemM6-Jun-07 1:03
WillemM6-Jun-07 1:03 
QuestionRe: Windows service communication` Pin
M. J. Jaya Chitra6-Jun-07 1:09
M. J. Jaya Chitra6-Jun-07 1:09 
AnswerRe: Windows service communication` Pin
Not Active6-Jun-07 1:21
mentorNot Active6-Jun-07 1:21 
AnswerRe: Windows service communication Pin
PavanPareta6-Jun-07 1:24
PavanPareta6-Jun-07 1:24 

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.