InsertFile() formatting problem (possibly a bug ?)

M

Mike

Hi! I need to combine a few documents together in such a way that each
document retains its formatting in the resulting document. I tried to put
Continuous Breaks at the start and end of each document as described here:
http://www.word.mvps.org/FAQs/Formatting/WorkWithSections.htm

Unfortunately, that technique does not seem to work. Formatting changes
anyway. To illustrate my point I created 3 documents AAA.doc, BBB.doc and
CCC.doc that can be downloaded from here:

http://www.freefileupload.net/file.php?file=files/310506/1149117631/FILES.zip
or here:
http://fileshare.variousstuff.net/0000000492/

I need to insert BBB.doc into AAA.doc so the resulting document has the same
formatting as CCC.doc (formatting of AAA and BBB was preserved).

No matter what I’ve done to AAA.doc and BBB.doc, I could not make it look
like CCC.doc.

I am truly lost. Is this a bug I need to report to Microsoft?

What can I do to preserve formatting with InsertFile()?

Infinite thanks in advance,

--Michael
 
M

macropod

Hi Mike,

I you need the source documents to retain their own formatting when linked
to the target file, you must ensure that none of the stylenames used in the
source documents have been formatted differently in the target document. If
they have, they'll adopt the style definitions in the target document.

So, either reserve particular styles in the target document for formatting
with the same properties as are used in the source documents, or use
different style names in the source documents.

Cheers
 
M

Mike

Thank you for taking a look. Is there anything I can do programmatically?
I do not have any control over source documents - they come from a variety
of people.

Many thanks in advance,

--Michael
 
M

macropod

Hi Mike,

In a collaborative work environment, this shouldn't be necessary. It should
be possible to get all parties to agree to work with a common template, to
give the final product a measure of consistency. With everyone doing their
own thing, you end up with a dog's breakfast.

A macro to alter style names in the source documents is certainly possibly,
but do you want to be doing that every time someone send you an update to
their masterpiece?

Cheers
 
M

Mike

Hi! I really appreciate you helping me. Unfortunately, I have no control over
which templates user use to compose their documents. I am an aggregator of
them all.
If I understood you correctly, if I rename each style used in the source
documents with a unique name, then my final document will not have the
formatting changes ?


Infinite thanks in advance,

--Michael



macropod said:
Hi Mike,

In a collaborative work environment, this shouldn't be necessary. It should
be possible to get all parties to agree to work with a common template, to
give the final product a measure of consistency. With everyone doing their
own thing, you end up with a dog's breakfast.

A macro to alter style names in the source documents is certainly possibly,
but do you want to be doing that every time someone send you an update to
their masterpiece?

Cheers

--
macropod
[MVP - Microsoft Word]


Mike said:
Thank you for taking a look. Is there anything I can do programmatically?
I do not have any control over source documents - they come from a variety
of people.

Many thanks in advance,

--Michael
 
M

macropod

Hi Mike,

Correct.

Cheers

--
macropod
[MVP - Microsoft Word]


Mike said:
Hi! I really appreciate you helping me. Unfortunately, I have no control over
which templates user use to compose their documents. I am an aggregator of
them all.
If I understood you correctly, if I rename each style used in the source
documents with a unique name, then my final document will not have the
formatting changes ?


Infinite thanks in advance,

--Michael



macropod said:
Hi Mike,

In a collaborative work environment, this shouldn't be necessary. It should
be possible to get all parties to agree to work with a common template, to
give the final product a measure of consistency. With everyone doing their
own thing, you end up with a dog's breakfast.

A macro to alter style names in the source documents is certainly possibly,
but do you want to be doing that every time someone send you an update to
their masterpiece?

Cheers

--
macropod
[MVP - Microsoft Word]


Mike said:
Thank you for taking a look. Is there anything I can do programmatically?
I do not have any control over source documents - they come from a variety
of people.

Many thanks in advance,

--Michael

:

Hi Mike,

I you need the source documents to retain their own formatting when linked
to the target file, you must ensure that none of the stylenames used
in
the
source documents have been formatted differently in the target
document.
If
they have, they'll adopt the style definitions in the target document.

So, either reserve particular styles in the target document for formatting
with the same properties as are used in the source documents, or use
different style names in the source documents.

Cheers


Hi! I need to combine a few documents together in such a way that each
document retains its formatting in the resulting document. I tried
to
put
Continuous Breaks at the start and end of each document as
described
here:
http://www.word.mvps.org/FAQs/Formatting/WorkWithSections.htm

Unfortunately, that technique does not seem to work. Formatting changes
anyway. To illustrate my point I created 3 documents AAA.doc,
BBB.doc
and
CCC.doc that can be downloaded from here:
http://www.freefileupload.net/file.php?file=files/310506/1149117631/FILES.zip
or here:
http://fileshare.variousstuff.net/0000000492/

I need to insert BBB.doc into AAA.doc so the resulting document
has
the
same
formatting as CCC.doc (formatting of AAA and BBB was preserved).

No matter what I've done to AAA.doc and BBB.doc, I could not make
it
look
like CCC.doc.

I am truly lost. Is this a bug I need to report to Microsoft?

What can I do to preserve formatting with InsertFile()?

Infinite thanks in advance,

--Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top