Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] mlsrinivas@gmail.com is offline
external usenet poster
 
Posts: 3
Default Merging documents with and with out headers

Hi,

I am trying to merge word documents from VB. I tried using Insert+File
and Copy & Paste methods. Both works perfect if I merge similar
documents. But as per the specs I need to merge documents of various
types (with header, with out header, different page settings,
different fonts etc), in short any format of word document, with out
losing the existing formatting.

During my search on web I have come to know that using Section break
with yield the required result. I tried with no luck.

Please help me crack this.

Thanks in advance

Srinivas
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Merging documents with and with out headers

See the article at
http://word.mvps.org/faqs/formatting...thSections.htm.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Hi,

I am trying to merge word documents from VB. I tried using Insert+File
and Copy & Paste methods. Both works perfect if I merge similar
documents. But as per the specs I need to merge documents of various
types (with header, with out header, different page settings,
different fonts etc), in short any format of word document, with out
losing the existing formatting.

During my search on web I have come to know that using Section break
with yield the required result. I tried with no luck.

Please help me crack this.

Thanks in advance

Srinivas



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] mlsrinivas@gmail.com is offline
external usenet poster
 
Posts: 3
Default Merging documents with and with out headers

Stefan,

Thanks for your reply. That article is bit confusing.

Srinivas

Stefan Blom wrote:
See the article at
http://word.mvps.org/faqs/formatting...thSections.htm.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Hi,

I am trying to merge word documents from VB. I tried using Insert+File
and Copy & Paste methods. Both works perfect if I merge similar
documents. But as per the specs I need to merge documents of various
types (with header, with out header, different page settings,
different fonts etc), in short any format of word document, with out
losing the existing formatting.

During my search on web I have come to know that using Section break
with yield the required result. I tried with no luck.

Please help me crack this.

Thanks in advance

Srinivas

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Merging documents with and with out headers

Basically, the article says that if you want to preserve section formatting
when copying and pasting, you will have to add a section break after the
contents you want to copy, and you should then copy and paste the contents
up to and including the break. And when using the Insert File dialog box,
you will have to insert a section break at the beginning and end of the
source document.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Stefan,

Thanks for your reply. That article is bit confusing.

Srinivas

Stefan Blom wrote:
See the article at
http://word.mvps.org/faqs/formatting...thSections.htm.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Hi,

I am trying to merge word documents from VB. I tried using Insert+File
and Copy & Paste methods. Both works perfect if I merge similar
documents. But as per the specs I need to merge documents of various
types (with header, with out header, different page settings,
different fonts etc), in short any format of word document, with out
losing the existing formatting.

During my search on web I have come to know that using Section break
with yield the required result. I tried with no luck.

Please help me crack this.

Thanks in advance

Srinivas





  #5   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] mlsrinivas@gmail.com is offline
external usenet poster
 
Posts: 3
Default Merging documents with and with out headers

Stefan,

It didn't work for me.

Let me explain you what I tried. I opened the document with First page
header and added section break continuous (when i tried section break
next page, page header appeared on the new page). Then I opened the
second report that has no header and added the section break
continuous at the end. Copied the entire content including the break
and pasted in the first document.

Header appeared on the report also.

Please help, I am stuck with this.

Thanks

Srinivas

Stefan Blom wrote:
Basically, the article says that if you want to preserve section formatting
when copying and pasting, you will have to add a section break after the
contents you want to copy, and you should then copy and paste the contents
up to and including the break. And when using the Insert File dialog box,
you will have to insert a section break at the beginning and end of the
source document.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Stefan,

Thanks for your reply. That article is bit confusing.

Srinivas

Stefan Blom wrote:
See the article at
http://word.mvps.org/faqs/formatting...thSections.htm.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Hi,

I am trying to merge word documents from VB. I tried using Insert+File
and Copy & Paste methods. Both works perfect if I merge similar
documents. But as per the specs I need to merge documents of various
types (with header, with out header, different page settings,
different fonts etc), in short any format of word document, with out
losing the existing formatting.

During my search on web I have come to know that using Section break
with yield the required result. I tried with no luck.

Please help me crack this.

Thanks in advance

Srinivas



  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Merging documents with and with out headers

You will have to unlink the headers and footers of the section in the source
document before copying. If the source document only has one section, you
will have to insert a section before *and* after the text; then you can
access the Link to Previous / Same As Previous button on the Header and
Footer toolbar (for the section you want to to copy).

Note that you may have to temporarily insert a page break in order to see
all headers and footers in the target document (otherwise you cannot turn
off Link to Previous / Same As Previous).

For example:

section break -- (1) Add this break
Text in source document to be copied along with its section formatting.
page break -- (3) Add page break
section break -- (2) Add this break

(4) For each type of header and footer, click Link to Previous / Same As
Previous to deselect the option.

(5) Copy the text, including the section break at (2).

(6) Paste into the target document.

Now it should work.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Stefan,

It didn't work for me.

Let me explain you what I tried. I opened the document with First page
header and added section break continuous (when i tried section break
next page, page header appeared on the new page). Then I opened the
second report that has no header and added the section break
continuous at the end. Copied the entire content including the break
and pasted in the first document.

Header appeared on the report also.

Please help, I am stuck with this.

Thanks

Srinivas

Stefan Blom wrote:
Basically, the article says that if you want to preserve section
formatting
when copying and pasting, you will have to add a section break after the
contents you want to copy, and you should then copy and paste the
contents
up to and including the break. And when using the Insert File dialog box,
you will have to insert a section break at the beginning and end of the
source document.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Stefan,

Thanks for your reply. That article is bit confusing.

Srinivas

Stefan Blom wrote:
See the article at
http://word.mvps.org/faqs/formatting...thSections.htm.

--
Stefan Blom
Microsoft Word MVP


wrote in message
...
Hi,

I am trying to merge word documents from VB. I tried using
Insert+File
and Copy & Paste methods. Both works perfect if I merge similar
documents. But as per the specs I need to merge documents of various
types (with header, with out header, different page settings,
different fonts etc), in short any format of word document, with out
losing the existing formatting.

During my search on web I have come to know that using Section break
with yield the required result. I tried with no luck.

Please help me crack this.

Thanks in advance

Srinivas




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
Merging Documents Thomas M. Microsoft Word Help 5 February 5th 08 11:38 PM
Merging documents oe New Users 1 September 21st 07 01:52 PM
merging many documents dew New Users 3 January 23rd 06 08:01 PM
Merging Documents Shannon Mailmerge 3 August 3rd 05 04:17 PM
Merging into New Documents Erika Mailmerge 2 December 30th 04 08:48 PM


All times are GMT +1. The time now is 08:46 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"