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