Reply
 
Thread Tools Display Modes
  #1   Report Post  
 
Posts: n/a
Default Master document misbehaviour

Is there any way to stop Word 2000 from appending a new page section
break at the end of subdocuments?

The Master Document ends up with continuous section breaks between the
subdocuments, which I can understand. But it actually adds new page
section breaks at the end of the source documents!

It insists on doing so even when I add them as read-only:

Sub CreateMasterDocument(strBaseFileName As String, _
strPath As String, _
intPages As Integer)

Dim oDoc As Document
Dim iPage As Integer

Set oDoc = Documents.Add
oDoc.Activate
ActiveWindow.ActivePane.View.Type = wdMasterView

ChangeFileOpenDirectory strPath
For iPage = 1 To intPages
Selection.Range.Subdocuments.AddFromFile _
Name:=strBaseFileName + "-" + Format(iPage, "0000") _
+ ".doc", ReadOnly:=True
Next iPage

ActiveDocument.SaveAs _
FileName:=strBaseFileName + "-0000.doc", _
FileFormat:=wdFormatDocument

ActiveDocument.Close
Set oDoc = Nothing

End Sub


Any suggestions?

  #2   Report Post  
Charles Kenyon
 
Posts: n/a
Default

Sorry, I don't have an answer because I don't use Master Documents. However,
you may need the reason I don't more than you need an answer. "Master
Document" is a term of art in Word referring to a "feature" that not only
doesn't work but also destroys documents. The consensus (with the limited
exception of Steve Hudson) among those offering advice on these newsgroups
is that using the Master Document feature is a good way to destroy your
document. It can destroy parts of your document that you are not even
working on! I think John McGhie said it succinctly when he said that there
are two kinds of Master Documents: Those that are corrupt and those that
will be corrupt soon. See
http://www.addbalance.com/word/masterdocuments.htm for information on the
Master Document feature and workarounds. See
http://www.mvps.org/word/FAQs/Genera...ocsCorrupt.htm for more
information on what goes wrong, and
http://www.mvps.org/word/FAQs/Genera...MasterDocs.htm for ideas on how
to salvage what you can. See
http://www.techwr-l.com/techwhirl/ma...masterdocs.doc for
Steve Hudson's instructions if you are willing to follow them very
carefully.

--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
wrote in message
oups.com...
Is there any way to stop Word 2000 from appending a new page section
break at the end of subdocuments?

The Master Document ends up with continuous section breaks between the
subdocuments, which I can understand. But it actually adds new page
section breaks at the end of the source documents!

It insists on doing so even when I add them as read-only:

Sub CreateMasterDocument(strBaseFileName As String, _
strPath As String, _
intPages As Integer)

Dim oDoc As Document
Dim iPage As Integer

Set oDoc = Documents.Add
oDoc.Activate
ActiveWindow.ActivePane.View.Type = wdMasterView

ChangeFileOpenDirectory strPath
For iPage = 1 To intPages
Selection.Range.Subdocuments.AddFromFile _
Name:=strBaseFileName + "-" + Format(iPage, "0000") _
+ ".doc", ReadOnly:=True
Next iPage

ActiveDocument.SaveAs _
FileName:=strBaseFileName + "-0000.doc", _
FileFormat:=wdFormatDocument

ActiveDocument.Close
Set oDoc = Nothing

End Sub


Any suggestions?



  #3   Report Post  
 
Posts: n/a
Default

Thanks for your response. I'm aware that many experts eschew Master
Documents, and I can see why. I think I can get by with INCLUDEFILEs in
my case anyways - a lot less problematic.

I have around 600 pages, each around 250Kb (there are dozens of GIFs in
each page), so I'd end up with a 150Mb document for printing. Do you
have a feeling for whether Word is likely able to handle this?

  #4   Report Post  
Charles Kenyon
 
Posts: n/a
Default

Word will be much more robust if the gifs are included as linked files
rather than embedded. I've had a 10,000 page document with cross-references
and a Table of Contents that was handled well.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

wrote in message
ups.com...
Thanks for your response. I'm aware that many experts eschew Master
Documents, and I can see why. I think I can get by with INCLUDEFILEs in
my case anyways - a lot less problematic.

I have around 600 pages, each around 250Kb (there are dozens of GIFs in
each page), so I'd end up with a 150Mb document for printing. Do you
have a feeling for whether Word is likely able to handle this?



  #5   Report Post  
 
Posts: n/a
Default

Thanks, Charles. I'm just a bit leary of my client's reaction (or the
print shop's) if I produce a final deliverable that consists of a
single Word document and 24,000 support files. But if I have to...



  #6   Report Post  
Charles Kenyon
 
Posts: n/a
Default

Well, then on a copy of your final document, run a macro to convert the
linked files to embedded ones. You'll end up with one big file.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

wrote in message
oups.com...
Thanks, Charles. I'm just a bit leary of my client's reaction (or the
print shop's) if I produce a final deliverable that consists of a
single Word document and 24,000 support files. But if I have to...



  #7   Report Post  
 
Posts: n/a
Default

Yes, that's what I do. Thanks.

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Document Feature Lousy...any suggestions? Jugglertwo Microsoft Word Help 2 February 23rd 05 09:09 AM
Formatting of Subdocument via "INCLUDE" into a Master Document Ron Lee Formatting Long Documents 5 February 17th 05 08:31 PM
Autotext. I want a subdocuments name in the master document petermichaux Microsoft Word Help 1 February 13th 05 02:38 AM
Large document as a master, but yet create smaller documents from. Cathy R. Hjelm Microsoft Word Help 1 February 8th 05 12:50 AM
Master document with different header and footer for subdocuments Richard Balfour Microsoft Word Help 2 January 4th 05 02:00 PM


All times are GMT +1. The time now is 06:41 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"