Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2007

Tip: Looking for answers? Try searching our database.

Writing automation clients for versions of Office including 2007

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Booth - 09 Apr 2007 19:26 GMT
I have code that binds to the PIA for Word 2000 that I need to keep running.
One of my clients wants to upgrade to 2007 and I would like to make the same
code work for both. All of the kb articles I have read imply this should be
OK as long as I use the earlier references, but they only discuss the
versions from 97 to 2003. When I try to use the code with 2007 I get
IEHExceptions.

Am I missing some documentation? or can anyone advise me whether what I want
to do is possible (and give me a clues as to how to do it!)

Thanks
Perry - 09 Apr 2007 21:24 GMT
> IEHExceptions.
Auch,  Interface implementation problems (the PIA's) ...

I'm afraid y'll have to wait for fully Office 2007 supported PIA's for this.

--
Krgrds,
Perry

System:
Vista/Office Ultimate
VS2005/VSTO2005 SE

>I have code that binds to the PIA for Word 2000 that I need to keep
>running.
[quoted text clipped - 11 lines]
>
> Thanks
Mark Booth - 10 Apr 2007 09:22 GMT
Thank you, Perry. When I opened VS it said it was updating my references, so
I had assumed, obviously wrongly, that it was fixing the PIAs. I don't
suppose anyone has any idea when they will be available, or why they should
be seen as an unncessary extra for delivery whenever? I seem to recollect
something about "developers, developers, developers"...

Sorry couldn't resist that.

Mark

> > IEHExceptions.
> Auch,  Interface implementation problems (the PIA's) ...
[quoted text clipped - 8 lines]
> Vista/Office Ultimate
> VS2005/VSTO2005 SE
Mark Booth - 10 Apr 2007 09:46 GMT
Having thought for a few seconds longer, the PIA for 2007 might solve the
IEHExceptions, but I shouldn't be getting them if 2007 continued the
consistency with earlier versions.

The PIA won't let me use the same executable for multiple versions of Word,
I will need to recompile and keep separate codebases for 2007 and earlier.

I assume that the v-tables have been changed in 2007. I seem to have to do a
lot of assuming, in the apparent absence of any documentation.

KB 245115 talks about having to work around "compatibility problems between
multiple versions of a component that has improperly modified or adapted its
interface between versions" which sounds like what I have here.

mmm... "improperly"...

Mark

> Thank you, Perry. When I opened VS it said it was updating my references, so
> I had assumed, obviously wrongly, that it was fixing the PIAs. I don't
[quoted text clipped - 18 lines]
> > Vista/Office Ultimate
> > VS2005/VSTO2005 SE
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.