Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional VSTO 2005 ISBN: 0-471-78813-9
This is the forum to discuss the Wrox book Professional VSTO 2005: Visual Studio 2005 Tools for Office by Alvin Bruney; ISBN: 9780471788133
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional VSTO 2005 ISBN: 0-471-78813-9 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 13th, 2008, 05:02 PM
Authorized User
 
Join Date: Sep 2007
Location: , VA, USA.
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default VBA, VSTO: Activate Document

Hi,
VS.NET 2005, VSTO, C#
VBA
MS Office 2003 (Word)

We have a project where we are customizing Word2003 using the above toolsets. To date much of the code that acts on the word template/docs is written in VBA however, an increasing percentage is being written in VSTO (C#).

We're currenlty having problems with having multiple documents open at the same time.

The documents are associated with a template. The template includes toolbars. There are three toolbars up at all times. Two of these are written in VBA, and one in VSTO.

My understanding is that the VBA runs at the application level, while VSTO runs at the doc level. If so, this may be the crux of our multiple document issues. Can you have both VBA and VSTO and still expect to work with multiple documents open at the same time? Is this just a matter of tracking down all the places in VBA where the docs are "Activated" and moving that code into VSTO?

My guess is that someone has run into this before and I'd really appreciate hearing how you solved the problem. We're leaning towards handling all the document activate code in VSTO, but we're not sure if that would resolve the whole issue.

Thanks in advance,
Paul

Reply With Quote
The Following User Says Thank You to CRSCoder For This Useful Post:
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
activate sheet mike0123m Excel VBA 1 August 11th, 2007 01:19 PM
multipage activate Fat_and_immoral Excel VBA 5 March 7th, 2007 01:03 PM
Form Activate help mohiddin52 Access VBA 2 January 5th, 2007 11:35 AM
Creating New Document In Word Through vba Hari_Word Excel VBA 1 July 22nd, 2004 05:50 PM
Document.SaveAs method in VBA Word 2k chtaylo3 Beginning VB 6 1 August 9th, 2003 04:10 PM



All times are GMT -4. The time now is 09:50 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.