ListGalleries and OrganizerCopy

C

Cresta

Hello again. This is complicated to put into a few words, but I'll try.
VS2005 addin for Word 2007.

When Word starts it runs the addin, part of which changes the Default font
name and size, and the linespacing, this is applied to the existing "Normal"
using the OrganizerCopy. This works well. I also want it to set a custom
OulineNumbered List which is created as the addin runs. No problem creating
the list, except for 2 things
1.
applicationObject.ListGalleries(Word.WdListGalleryType.wdOutlineNumberGallery).ListTemplates("StyleDocument7"),
ContinuePreviousList:=False, _
ApplyTo:=Word.WdListApplyTo.wdListApplyToSelection, _
DefaultListBehavior:=wdWord10ListBehavior)

I dont know what to declare the "wdWord10ListBehavior" as, or even if it is
necessary.

and

2.
Can the OrganizerCopy cope with copying this list to be the Default on the
Normal as below:

applicationObject.OrganizerCopy(Source:=applicationObject.ActiveDocument.FullName, _
Destination:=applicationObject.ActiveDocument.AttachedTemplate.FullName, _
Name:="Normal", Object:=Word.WdOrganizerObject.wdOrganizerObjectStyles)

I have taken the "DefaultListBehavior:=wdWord10ListBehavior" out and
rebuild/installed it, but it hasn't become Words default OulineNumbered list.

Any ideas
Many thanks
 

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