Solved

Best way to program a word add-in

Posted on 2006-10-23
2
133 Views
Last Modified: 2012-03-24
Hi experts,

I'm looking for a little bit of design advice.

I've been building a Word add-in with VBA and I like how that's been going.  At this point I want to start building this as a solution that can (one day) be deployed as a fully fledged Word add-in using either VB.NET or VB6.  However, I'm not sure which is more appropriate.

If I use VB6 there'll be no compatibility with Word 2007, there's less guidance from Microsoft and I'm fundamentally programming in a system that has been replaced.  However, the VBA code will require little adjustment, there's less to learn (all I know is VBA) and all I need to do is find an older version of Visual Studio.  

However, if I use (and learn) .NET, what is the implication of calling Word through the COM/PIAs?  Faster?  Slower?  More importantly, I'm using Visual Studio 2005 with Word 2002.  Does that mean my solution will only be compatible with 2002?Forgive me if the question is too unexpert... but on some of these basics there is very little support!

Thanks in advance for the assistance and for any advice you can offer on this.

Cheers,

PatternNut
0
Comment
Question by:PatternNut
2 Comments
 
LVL 13

Accepted Solution

by:
newyuppie earned 125 total points
ID: 17787113
i think that if you program for word 2002, newer versions of word do have backward compatibility. different is if you program for word 2007, theres a chance it wont work for older versions.

if you are trying to decide vb6 vs vb.net, i would strongly suggest vb.net. its a whole different experience for the programmer, its really a lot of fun! moreover, vb.net has a lot of cool things, including a Word namespace, meaning that you get access to all of word methods, functionalities, interoperability and communication in simple Intellisense methods adding just 1 reference to Word Interop. the whole .net framework calls any COM, API etc for you, you dont need to worry about anything like importing dlls and stuff like that, every method is neatly and nicely wrapped to easy to remember routine names in .net.

thats just my opinion hope it helps you decide

NY
0
 
LVL 11

Assisted Solution

by:Vivek Thangaswamy
Vivek Thangaswamy earned 125 total points
ID: 17787438
Microsoft as made easy for Ad-In development for any office Application. Microsoft as released VSTO for office appliaction and Ad-in development. For more install the VSTO and devlop your Ad-in.

http://vivekthangaswamy.blogspot.com/2006/10/microsoft-visual-studio-2005-tools-for.html
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Populating an array of locale_time_info 8 46
cannot connect to sqlserver 8 25
Help with consolidating excel files using VB.net 2 21
ASP/VB email question 4 31
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now