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 / September 2006

Tip: Looking for answers? Try searching our database.

Word Slooowwww When Opening Document with Embedded VB Widgets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Geretz - 25 Sep 2006 18:36 GMT
We have an application which displays Word documents. Since our application
is view only, we've been using the Word Viewer to display our documents.

Recently, we shifted over to use Word via Automation, for better
programmatic integration. Our application is working, but we've noticed that
some documents take much longer to open. We've traced this to documents
which contain VBA programming with embedded VB widgets (controls). In
comparison, these documents open in a flash with WordViewer, but take 4 - 5
seconds to open in Word itself.

The fact that WordViewer can open these documents quickly gives me hope that
perhaps there is a way to open these quickly within Word itself. Any ideas?

Thanks very much for your help!

- Joe Geretz -
Jezebel - 25 Sep 2006 22:13 GMT
If you're opening them in Word itself, Word has to resolve the code library
references for each widget (via the registry), then find, open, and
initialize the code libraries. It also has to initialize the VBA code in the
document itself and its related template, likewise dealing with any
referenced libraries.

The Viewer doesn't do any of that.

> We have an application which displays Word documents. Since our
> application is view only, we've been using the Word Viewer to display our
[quoted text clipped - 14 lines]
>
> - Joe Geretz -
Joseph Geretz - 26 Sep 2006 01:10 GMT
Is there any way I can direct Word to behave like the Viewer? That is, just
open a read-only copy of the document?

You may wonder why not just use the Word Viewer in that case? The trouble
with the Word Viewer is that it doesn't provide any interface for acting as
the server to a client software, it's designed strictly for interactive
purposes. This being the case, it's awkward to programmatically control the
Word Viewer from aother application. For this reason, we've switched over to
use Word itself, but we're now seing this undesirable behavior.

So if we could somehow get Word to behave like Word Viewer, that would be
perfect for us.

Thanks for your help!

- Joe Geretz -

> If you're opening them in Word itself, Word has to resolve the code
> library references for each widget (via the registry), then find, open,
[quoted text clipped - 22 lines]
>>
>> - Joe Geretz -
Jezebel - 26 Sep 2006 02:16 GMT
> Is there any way I can direct Word to behave like the Viewer? That is,
> just
> open a read-only copy of the document?

No.
 
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.