|
-
Jul 15th, 2003, 06:48 PM
#12
Frenzied Member
Originally posted by Lethal
Just out of curiosity, what's makes it more difficult programming Office in C#?
Its not difficult, its just tedious.
C# does not support optional parameters and alot of the functions in Word or Excel allow as many as thirty or more optional parameters. So if you call a method in Word that requires 30 parameters, you have keep putting Type.Missing for the parameters that you dont want to include. VB.NET supports optional parameters so its much easier.
Also in Word parameters must be must be passed by reference and you can only pass lvalues. So if you want to pass 30 parameters, you have to declare 30 object parameters, assign what you want to them then pass them by reference. Doing all this will drive me nuts. So I'll be using VB.NET for Office programming. At least I'll have some hair on my head when I'm done .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|