Subject: Visual Studio 2005 Tools for Office on Word
Posted By: cjkoontz Post Date: 12/21/2006 2:33:35 PM
How in depth is Mr. Bruney's  book on Word automation?

My interests are replacing Word VBA code with something more up to date.  I have a few Word VBA based templates, but one in particular does the following:

* Creates folders off of a network share.
* Creates a Word doc from a template.
* Fills bookmarks.
* Passes back the path and file to the created Word doc.

Does the book explain how to replace VBA coding like this?

I'm also interested in created a program that will email a collection of Word docs, given the file-paths to them and the email addresses.

Autobots
Reply By: alvinjohnbruney Reply Date: 12/21/2006 7:01:22 PM
The word coverage is solid. It will ground you in the basics and allow you to strike out on your own (answer questions like what you have).

* Creates a Word doc from a template.
working with word templates p.123

* Fills bookmarks.
Working code p.112

* Passes back the path and file to the created Word doc.
* Creates folders off of a network share.
Strictly speaking, these aren't office topics, they relate more closely to generic programming topics and you would need to use the .NET API for that.

A file on a share is handled conceptually the same as a local read. You simply need to read the file into the range using a file path that points to the share. You need to have read permissions on the share from windows but not from .NET since the application is running with full-trust locally.

To create the directory, you need to use the .NET API (File class). This class can create directories and extract paths as well. Just call that custom code from your word code and you are all set. There is an example on p.22 that demonstrates how to work with files in that manner.




Reply By: cjkoontz Reply Date: 12/22/2006 3:44:30 AM
Thanks.  I actually ordered the book before asking the questions, because I have a general interest in VSTO.



Autobots
Reply By: d_wzrdv_z Reply Date: 7/19/2007 10:17:17 PM
Hello - I am replying here bc it is the sole populated thread concerning vsto on the wrox forums.  


I am writing a request to get some help on a common deployment issue with MS Add-ins.   The client is in NZ and I have what I think is an identical configuration..in other words I can get my add-in to NOT work.   It works on the development machines, which have a lot of stuff on them.  I have sent several requests so far, and followed each step on several platforms, formatting machines and virtual machines, and still this bug bites!  I'm using XP Professional, .NET 1.1, Office 2003 Professional and .Net 2.0 - in that order so as to get the MS Office and Word PIA's.   I am missing something, and it is not:

.Net 1.1 or 2.0
Office/Word PIA's (stored in the GAC)
VSTO runtime
VSTO SE runtime
Microsoft Installer 3.0 (I am not using the KB hotfix as it comes with Service Pack 2).

If any of you Add-ins gurus out there could help, I'm on my way to  joining you (in a few months of course)

Regards,

dwiz



Go to topic 63125

Return to index page 1