G
Guest
With the following commands Bookmarks are filled out in the footer of a word
doc from within access
but the document is shown in normal view.
I want it shown in Print View but even with the following code WORD keeps
Normal View ?
What is the solution ?
Thanks
Set oApp = CreateObject("Word.Application")
With oApp
.Documents.Open (strInputFile)
.ActiveDocument.Bookmarks("InvName").select
.Selection.Text = "test naar bookmark in footer"
.ActiveDocument.Bookmarks("InvNameBody").select
.Selection.Text = "test maar dan naar bookmark in bidy"
End With
With ActiveWindow.View
.Type = wdPrintView 'select page/print layout view
' .Zoom.Percentage = 100 'set the display zoom to 100%
' .FieldShading = wdFieldShadingWhenSelected 'set the field shading
preference
' .ShowFieldCodes = False 'turn off field code display
'.DisplayPageBoundaries = True 'Turn on white space between pages
'End With
oApp.Visible = True
doc from within access
but the document is shown in normal view.
I want it shown in Print View but even with the following code WORD keeps
Normal View ?
What is the solution ?
Thanks
Set oApp = CreateObject("Word.Application")
With oApp
.Documents.Open (strInputFile)
.ActiveDocument.Bookmarks("InvName").select
.Selection.Text = "test naar bookmark in footer"
.ActiveDocument.Bookmarks("InvNameBody").select
.Selection.Text = "test maar dan naar bookmark in bidy"
End With
With ActiveWindow.View
.Type = wdPrintView 'select page/print layout view
' .Zoom.Percentage = 100 'set the display zoom to 100%
' .FieldShading = wdFieldShadingWhenSelected 'set the field shading
preference
' .ShowFieldCodes = False 'turn off field code display
'.DisplayPageBoundaries = True 'Turn on white space between pages
'End With
oApp.Visible = True