Click here to Skip to main content
15,909,897 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drawing bitmap? Pin
Dominik Reichl5-Oct-06 6:43
Dominik Reichl5-Oct-06 6:43 
QuestionClient/server communication Pin
The underdog5-Oct-06 2:09
The underdog5-Oct-06 2:09 
AnswerRe: Client/server communication Pin
Andrei Ungureanu5-Oct-06 2:29
Andrei Ungureanu5-Oct-06 2:29 
GeneralRe: Client/server communication Pin
The underdog5-Oct-06 2:40
The underdog5-Oct-06 2:40 
GeneralRe: Client/server communication Pin
Andrei Ungureanu5-Oct-06 3:15
Andrei Ungureanu5-Oct-06 3:15 
GeneralRe: Client/server communication [modified] Pin
The underdog5-Oct-06 3:24
The underdog5-Oct-06 3:24 
Questionupdate dataset fields in runtime Pin
topcatalpha5-Oct-06 1:28
topcatalpha5-Oct-06 1:28 
QuestionNo application associated with specified file... [modified] Pin
Support1235-Oct-06 1:26
Support1235-Oct-06 1:26 
Hi all,

I want to print a pdf file if the user clicks on a print button

I'm using this code...
string CardPath = "C:\Card";<br />
      Process myProcess = new Process();<br />
      myProcess.StartInfo.FileName = CardPath + "\\Card.pdf";<br />
      myProcess.StartInfo.Verb = "Print";<br />
      myProcess.StartInfo.CreateNoWindow = true;<br />
      myProcess.Start();


I get an error saying just as it executes the myProcess.Start() part of my code...
"No application associated with the specified file for this operation"

How can i specify with what application to print??

Please help.
Thank you in advance....


-- modified at 9:20 Thursday 5th October, 2006

Oh yeah...
Would you by any chance know how to send this print to a specific printer?

i can send a .html or .doc to the printer but not the .pdf as stated above.

"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

QuestionSaving list box contents Pin
Wolf925-Oct-06 1:07
Wolf925-Oct-06 1:07 
AnswerRe: Saving list box contents Pin
rah_sin5-Oct-06 1:27
professionalrah_sin5-Oct-06 1:27 
AnswerRe: Saving list box contents Pin
MCSD-Gandalf5-Oct-06 1:27
MCSD-Gandalf5-Oct-06 1:27 
QuestionTree Library / control for c# Pin
t4ure4n5-Oct-06 0:52
t4ure4n5-Oct-06 0:52 
QuestionDoubt in Switch-Case statement. Pin
He is Cool5-Oct-06 0:41
He is Cool5-Oct-06 0:41 
AnswerRe: Doubt in Switch-Case statement. Pin
albCode5-Oct-06 0:48
albCode5-Oct-06 0:48 
GeneralRe: Doubt in Switch-Case statement. Pin
He is Cool5-Oct-06 0:53
He is Cool5-Oct-06 0:53 
GeneralRe: Doubt in Switch-Case statement. Pin
Colin Angus Mackay5-Oct-06 0:54
Colin Angus Mackay5-Oct-06 0:54 
GeneralRe: Doubt in Switch-Case statement. Pin
Christian Graus5-Oct-06 1:00
protectorChristian Graus5-Oct-06 1:00 
AnswerRe: Doubt in Switch-Case statement. Pin
Christian Graus5-Oct-06 0:53
protectorChristian Graus5-Oct-06 0:53 
GeneralRe: Doubt in Switch-Case statement. Pin
Colin Angus Mackay5-Oct-06 1:04
Colin Angus Mackay5-Oct-06 1:04 
AnswerRe: Doubt in Switch-Case statement. Pin
Colin Angus Mackay5-Oct-06 0:53
Colin Angus Mackay5-Oct-06 0:53 
QuestionProperty Grid Pin
praveenqwe5-Oct-06 0:39
praveenqwe5-Oct-06 0:39 
AnswerRe: Property Grid Pin
visualhint6-Oct-06 2:13
visualhint6-Oct-06 2:13 
QuestionHit the Enter in Textbox the value will be displayed in other textbox Pin
irkahc5-Oct-06 0:36
irkahc5-Oct-06 0:36 
AnswerRe: Hit the Enter in Textbox the value will be displayed in other textbox Pin
Christian Graus5-Oct-06 1:01
protectorChristian Graus5-Oct-06 1:01 
QuestionLive streaming with Direct Show Pin
AB77715-Oct-06 0:35
AB77715-Oct-06 0:35 

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.