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 / July 2008

Tip: Looking for answers? Try searching our database.

OrganizerCopy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cresta - 25 Jul 2008 08:35 GMT
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
Stefan Blom - 25 Jul 2008 09:00 GMT
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).

Signature

Stefan Blom
Microsoft Word MVP

> Hello
>
[quoted text clipped - 6 lines]
>
> Thanks
Cresta - 25 Jul 2008 09:30 GMT
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?

> 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
[quoted text clipped - 14 lines]
> >
> > Thanks
Stefan Blom - 25 Jul 2008 13:37 GMT
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.

Signature

Stefan Blom
Microsoft Word MVP

> Thanks Stefan
> Word 2007 it is - which explains why i cant copy the lists back to the
[quoted text clipped - 27 lines]
>> >
>> > Thanks
Cresta - 25 Jul 2008 14:36 GMT
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?

> 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
[quoted text clipped - 38 lines]
> >> >
> >> > Thanks
Stefan Blom - 28 Jul 2008 08:46 GMT
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.

Signature

Stefan Blom
Microsoft Word MVP

> Looks like i'm abandoning that route, thanks for your input.
> I have had another thought on this.
[quoted text clipped - 54 lines]
>> >> >
>> >> > Thanks
Cindy M. - 28 Jul 2008 16:49 GMT
Hi Cresta,

> Looks like i'm abandoning that route, thanks for your input.
> I have had another thought on this.
[quoted text clipped - 3 lines]
>  
> 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 :-)
 
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.