Click here to Skip to main content
15,898,718 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML Deserialization question Pin
Clive Pottinger8-Nov-06 15:10
Clive Pottinger8-Nov-06 15:10 
QuestionNearest neighbour algorithm Pin
Islam Khalil Saber6-Nov-06 4:35
Islam Khalil Saber6-Nov-06 4:35 
AnswerRe: Nearest neighbour algorithm Pin
J4amieC6-Nov-06 4:42
J4amieC6-Nov-06 4:42 
AnswerCross posting Pin
leckey6-Nov-06 6:41
leckey6-Nov-06 6:41 
Questiondatagridview help needed Pin
giddy_guitarist6-Nov-06 4:34
giddy_guitarist6-Nov-06 4:34 
AnswerRe: datagridview help needed Pin
Rey99997-Nov-06 6:36
Rey99997-Nov-06 6:36 
GeneralRe: datagridview help needed Pin
giddy_guitarist7-Nov-06 21:59
giddy_guitarist7-Nov-06 21:59 
QuestionTesting the presence of a reference Pin
Maercu6-Nov-06 4:23
Maercu6-Nov-06 4:23 
We're developing an application (.net 2.0 / C#) that interacts with Office and other external applications. So all needed references are added to Visual Studio's "References" and then used ("using x.y.z") in our sources.

This works fine but what if someone (an enduser) doesn't have say MS Project installed?
The sources won't compile, crying that "The type or namespace 'MSProject' does not exist ... (are you missing an assembly reference?)".

Is there any possibility to make a (prior) test if a reference is available or not? Something like a try/catch surrounding the "using" statement?

In fact we would like to test if MS Project (or another application) is installed and if not simply don't provide the functionality. I searched on MSDN, Google Groups, etc but did not find something useful...


Thank you very much for your help!

AnswerRe: Testing the presence of a reference Pin
led mike6-Nov-06 5:08
led mike6-Nov-06 5:08 
AnswerRe: Testing the presence of a reference Pin
liRetro6-Nov-06 5:51
liRetro6-Nov-06 5:51 
AnswerRe: Testing the presence of a reference Pin
Maercu6-Nov-06 21:46
Maercu6-Nov-06 21:46 
QuestionWhich class I should use in communication? Pin
mertkan656-Nov-06 4:11
mertkan656-Nov-06 4:11 
QuestionWeird problem... [modified] Pin
Support1236-Nov-06 3:52
Support1236-Nov-06 3:52 
AnswerRe: Weird problem... Pin
ednrgc6-Nov-06 4:09
ednrgc6-Nov-06 4:09 
GeneralRe: Weird problem... Pin
Support1236-Nov-06 4:34
Support1236-Nov-06 4:34 
AnswerRe: Weird problem... Pin
Pete O'Hanlon6-Nov-06 4:25
mvePete O'Hanlon6-Nov-06 4:25 
GeneralRe: Weird problem... Pin
Support1236-Nov-06 4:38
Support1236-Nov-06 4:38 
GeneralRe: Weird problem... Pin
Pete O'Hanlon6-Nov-06 4:48
mvePete O'Hanlon6-Nov-06 4:48 
GeneralRe: Weird problem... Pin
Support1236-Nov-06 4:52
Support1236-Nov-06 4:52 
GeneralRe: Weird problem... Pin
eggsovereasy6-Nov-06 5:47
eggsovereasy6-Nov-06 5:47 
GeneralRe: Weird problem... Pin
Support1236-Nov-06 21:51
Support1236-Nov-06 21:51 
QuestionC# (Windows Forms) to HTML to PDF Pin
davehoonter6-Nov-06 3:49
davehoonter6-Nov-06 3:49 
AnswerRe: C# (Windows Forms) to HTML to PDF Pin
Christopher Duncan7-Nov-06 3:25
Christopher Duncan7-Nov-06 3:25 
Questionexcel .NET 2.0 Pin
fmardani6-Nov-06 3:30
fmardani6-Nov-06 3:30 
AnswerRe: excel .NET 2.0 Pin
ednrgc6-Nov-06 3:44
ednrgc6-Nov-06 3:44 

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.