T
Tobias Schröer
Hi,
I have Word 2003 document, separated in three sections. The first
section is a kind of header with some form fields (e.g. adress) in a
table. The second and third sections are normal text sections. I have
enable document protection: first section allows form field input,
second and third section are not protected.
Now, I want to print that document, but only the first and second
section. The third section contains some intermal remarks that should
not be published. I tried that by VBA with this statement:
Application.PrintOut _
0, 0, WdPrintOutRange.wdPrintRangeOfPages, psFile, , , , , _
"s1-s1", wdPrintAllPages, True
(I also tried the version with naming the parameters as 'Pages:="s1-s2"')
I tried that also with the word printing dialog and specified "s1-s2" as
printing range.
In either case the whole document is printed. I also tried several
printers: all with the same result. Switching off the document
protection doesen't help either.
Any ideas? Or am I missing something fundamental here?
Thanks
Tobi
I have Word 2003 document, separated in three sections. The first
section is a kind of header with some form fields (e.g. adress) in a
table. The second and third sections are normal text sections. I have
enable document protection: first section allows form field input,
second and third section are not protected.
Now, I want to print that document, but only the first and second
section. The third section contains some intermal remarks that should
not be published. I tried that by VBA with this statement:
Application.PrintOut _
0, 0, WdPrintOutRange.wdPrintRangeOfPages, psFile, , , , , _
"s1-s1", wdPrintAllPages, True
(I also tried the version with naming the parameters as 'Pages:="s1-s2"')
I tried that also with the word printing dialog and specified "s1-s2" as
printing range.
In either case the whole document is printed. I also tried several
printers: all with the same result. Switching off the document
protection doesen't help either.
Any ideas? Or am I missing something fundamental here?
Thanks
Tobi