Extract First 2 Pages From word document

  • Thread starter FootNotes For VBA Macro
  • Start date
F

FootNotes For VBA Macro

Hi All

I have one critical Word 2003 Requirement Using C#.net

I have Standard Word document Template which has only 2 Page's ,
Template 1 page has : Document Title & Version Bond Font size 14
Template 2 Page has : Version History Table

I have another process document.

I need to Programatically insert a word document template into a existing
document

i.e i need to copy the 2 page's from document template, and paste to
existing document as first 2 page's, it should preserving the exsiting
document content i.e ( header/footer, style etc.....)

How can i do these through programatically using C#.net

pleaes provide your valuable solutions for these problem

Thanks

Orcas
 
G

Graham Mayor

The programming language is not the primary issue here. Word is not a page
layout application. A Word document 'page' may be made up of a variety of
independent elements flowed into the space currently allowed by the
underlying margins and the active printer driver. You cannot simply select
'a page' and insert it into another document and have it retain all its
formatting headers and footers etc independently of the other document's
possibly conflicting formatting.What you are trying to achieve may not be
possible - at least not in the way you envisage.

The way a template should be used is to create a new document from it and
then insert the content into that document. As your process is unclear it is
difficult to advise a way forward. If you need to have the two formatted
pages, they should be your start point and the document built around them.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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