Yes I did go through the Documentation. But looks like that is outdated. I use Office2003.
After some googling i came to know that all the methods are same as that of VB. So I created a macro in MSWord and Recorded some actions like adding Headings, Text, bullets etc.I checked the source code of the Macro(which is in VB) and found out the following information:
-
Sub BulletMacro()
-
'
-
' BulletMacro Macro
-
' Macro recorded 2008-03-13 by ing03125
-
'
-
Selection.TypeParagraph
-
Selection.Style = ActiveDocument.Styles("Heading 2,Paragraph Title,l2")
-
Selection.TypeText Text:="TE_Testcase: test"
-
Selection.TypeParagraph
-
Selection.TypeParagraph
-
Selection.Style = ActiveDocument.Styles("Heading 2,Paragraph Title,l2")
-
Selection.TypeText Text:=" TE_Testcase: Test1"
-
Selection.TypeParagraph
-
Selection.TypeParagraph
-
With ListGalleries(wdBulletGallery).ListTemplates(1).ListLevels(1)
-
.NumberFormat = ChrW(61623)
-
.TrailingCharacter = wdTrailingTab
-
.NumberStyle = wdListNumberStyleBullet
-
.NumberPosition = InchesToPoints(0.25)
-
.Alignment = wdListLevelAlignLeft
-
.TextPosition = InchesToPoints(0.5)
-
.TabPosition = InchesToPoints(0.5)
-
.ResetOnHigher = 0
-
.StartAt = 1
-
With .Font
-
.Bold = wdUndefined
-
.Italic = wdUndefined
-
.StrikeThrough = wdUndefined
-
.Subscript = wdUndefined
-
.Superscript = wdUndefined
-
.Shadow = wdUndefined
-
.Outline = wdUndefined
-
.Emboss = wdUndefined
-
.Engrave = wdUndefined
-
.AllCaps = wdUndefined
-
.Hidden = wdUndefined
-
.Underline = wdUndefined
-
.Color = wdUndefined
-
.Size = wdUndefined
-
.Animation = wdUndefined
-
.DoubleStrikeThrough = wdUndefined
-
.Name = "Symbol"
-
End With
-
.LinkedStyle = ""
-
End With
-
ListGalleries(wdBulletGallery).ListTemplates(1).Name = ""
-
Selection.Range.ListFormat.ApplyListTemplate ListTemplate:=ListGalleries( _
-
wdBulletGallery).ListTemplates(1), ContinuePreviousList:=False, ApplyTo:= _
-
wdListApplyToWholeList, DefaultListBehavior:=wdWord10ListBehavior
-
Selection.TypeText Text:="first"
-
Selection.TypeParagraph
-
Selection.TypeText Text:="second"
-
Selection.TypeParagraph
-
Selection.TypeText Text:="third"
-
Selection.TypeParagraph
-
Selection.TypeBackspace
-
End Sub
-
But looks like this info is also not useful for me. Because when I try to print the Numbering associated with Headings/Bullets, Perl will print only the Style and does not give the value associated with it. like this:
Style = Heading 1,Chapter Title,l1,TOC,1
Please let me know if anyone knows about it.
Thanks
Pramod