OrganizerCopy

C

Cresta

Hello

Does anyone know which of the following OrganizerCopy methods can copy
ListGalleries to the "Normal"
1 Object:=wdOrganizerObjectAutoText
2 Object:=wdOrganizerObjectCommandBars
3 Object:=wdOrganizerObjectProjectItems
4 Object:=wdOrganizerObjectStyles

Thanks
 
S

Stefan Blom

If you are using a Word version that supports list styles, you can certainly
use the OrganizerCopy method to copy those styles between documents (use the
wdOrganizerObjectStyles constant).

List galleries, on the other hand, are not stored in the document; instead
they are user-specific, stored in the ListGalleryPresets key in the registry
(Word 97-2003) or in the ListGal.dat file in the user profile (Word 2007).
 
C

Cresta

Thanks Stefan
Word 2007 it is - which explains why i cant copy the lists back to the normal.

I have found the ListGal.Dat file within my profile. How easy is it to copy
the ListGallery to this file?
 
S

Stefan Blom

Are you saying that you have a backup (*.reg) file of the ListGalleryPresets
key from an older Word installation? Restoring such a file probably won't
work in Word 2007 (which you may already have noticed).

As far as I know, the ListGal.dat file cannot be edited. What you can do is
make a backup copy and restore that as necessary, but I realize that won't
help now. :-(

Note that the safest way to store and reuse numbering formatting is by using
styles, as in previous versions of Word.
 
C

Cresta

Looks like i'm abandoning that route, thanks for your input.
I have had another thought on this.
I already have an addin which creates our corporate ribbon when Word starts.
Is it possible to use this addin to add the OutlineNumbering code into Words
auto_open or auto_new macro as the addin is loaded.

Does this sound logical?
 
S

Stefan Blom

Sorry, I don't know anything about ribbon customization, so I really cannot
advise on how to edit such an add-in. Unless you get a reply from someone
who does know, you may want to post this question in a separate thread.
 
C

Cindy M.

Hi Cresta,
Looks like i'm abandoning that route, thanks for your input.
I have had another thought on this.
I already have an addin which creates our corporate ribbon when Word starts.
Is it possible to use this addin to add the OutlineNumbering code into Words
auto_open or auto_new macro as the addin is loaded.

Does this sound logical?
Yes, you should be able to use your add-in to create list styles.

However, I suggest you do *not* use the ListGallery for this. The ListGallery
entries tend to change their order, depending on what the user does when using
Word. Much better to link your outline numbering to a set of styles, or create
a ListTemplate and provide the tools for using it in your Ribbon.

The point at which your add-in should create the numbering stuff in a document:
Your Add-in should be able to trap the DocumentOpen and DocumentNew events of
the Application object.

If you need more help with setting up the events you should probably post in a
different newsgroup (or forum). Which programming language/technology are you
using to create this add-in? VB6? Visual Studio .NET with the Shared Add-ins
template? Or VSTO?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top