This type of information is not stored in the document, but there would be
nothing stopping you from storing such information in either document
variables or custom document properties and using the information from that
source in a field.
I have been developing a variable/property/bookmark editor more than ably
assisted by my American friend Greg Maxey
http://gregmaxey.mvps.org/word_tips.htm, who did all the work on document
properties (which are quite complicated). You can download the editor as an
add-in (for Word 2007/2010) from
http://www.gmayor.com/BookmarkandVariableEditor.htm where you will also see
its use described.
This makes the addition of property and variable information a breeze and
allows for the data to be displayed and changed at will.
The add-in doesn't (and will not in the future) store information relating
to the layout of the document by default. It would however be fairly simple
to create a macro to apply required document settings to document variables,
which could then be displayed, cross referenced etc using the add-in. e.g.
as follows. Run Macro1 to populate some values in a blank document to get
some idea. Obviously this is very basic, you may need to modify the values
to give more meaningful results (as shown in some examples) and you will not
want to remove all variables if you already have variables, but it will give
an idea of what is possible.
Sub Macro1()
Dim oVars As Variables
Dim oVar As Variable
Set oVars = ActiveDocument.Variables
For Each oVar In oVars
oVar.Delete
Next oVar
With ActiveDocument.PageSetup
If .Orientation = wdOrientPortrait Then
oVars.Add("Orientation").Value = "Portrait"
Else
oVars.Add("Orientation").Value = "Landscape"
End If
oVars.Add("Top Margin").Value = PointsToCentimeters(.TopMargin)
oVars.Add("Bottom Margin").Value = PointsToCentimeters(.BottomMargin)
oVars.Add("Left Margin").Value = PointsToCentimeters(.LeftMargin)
oVars.Add("Right Margin").Value = PointsToCentimeters(.RightMargin)
oVars.Add("Gutter").Value = .Gutter
oVars.Add("Header Distance").Value =
PointsToCentimeters(.HeaderDistance)
oVars.Add("Footer Distance").Value =
PointsToCentimeters(.FooterDistance)
oVars.Add("Page Width").Value = PointsToCentimeters(.PageWidth)
oVars.Add("Page Height").Value = PointsToCentimeters(.PageHeight)
oVars.Add("First Page Tray").Value = .FirstPageTray
oVars.Add("Other Pages Tray").Value = .OtherPagesTray
Select Case .SectionStart
Case Is = wdSectionContinuous
oVars.Add("Section Start").Value = "Continuous"
Case Is = wdSectionEvenPage
oVars.Add("Section Start").Value = "Even Page"
Case Is = wdSectionNewPage
oVars.Add("Section Start").Value = "New Page"
Case Is = wdSectionOddPage
oVars.Add("Section Start").Value = "Odd Page"
End Select
oVars.Add("Odd And Even Pages Header Footer").Value =
..OddAndEvenPagesHeaderFooter
If .DifferentFirstPageHeaderFooter = 0 Then
oVars.Add("Different First Page Header Footer").Value = "False"
Else
oVars.Add("Different First Page Header Footer").Value = "True"
End If
oVars.Add("Vertical Alignment").Value = .VerticalAlignment
If .SuppressEndnotes = 0 Then
oVars.Add("Suppress Endnotes").Value = False
Else
oVars.Add("Suppress Endnotes").Value = True
End If
oVars.Add("Mirror Margins").Value = .MirrorMargins
End With
End Sub
http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>