Generate multi page .doc from XML

P

projserverpm

We have been able to inject XML into a word document (for example in
an Avery name tag template), and populate it with some content. It
has only worked with 1 page documents. Any ideas as to how a
multipage document can be created by using a 1 page template (Avery
again)?
 
B

Bob Buckland ?:-\)

What version of Word, what Word document format and what method are you using to place the XML in the Word file?

Word label sheets are generally tables and the population can be done with table content or with Word's merge capabilities via
fields placed in the table (label) cells.

==========
We have been able to inject XML into a word document (for example in
an Avery name tag template), and populate it with some content. It
has only worked with 1 page documents. Any ideas as to how a
multipage document can be created by using a 1 page template (Avery
again)? >>
--

Bob Buckland ?:)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*
 
P

projserverpm

What version of Word, what Word document format and what method are you using to place the XML in the Word file?

Word label sheets are generally tables and the population can be done with table content or with Word's merge capabilities via
fields placed in the table (label) cells.

==========
We have been able to inject XML into a word document (for example in
an Avery name tag template), and populate it with some content.  It
has only worked with 1 page documents.  Any ideas as to how a
multipage document can be created by using a 1 page template (Avery
again)? >>
--

Bob  Buckland  ?:)
MS Office System Products MVP

  *Courtesy is not expensive and can pay big dividends*

Bob,

We want to render XML in MS Word (2003 or up) when a user clicks on a
link. The challenge is that we've been able to do this using an
Averey label template (1 pager), however don't know how to inject XML
in a word document so it starts on the next page (and not continues at
the end of first page). I am not a developer, just trying to gather
more intel which I can forward to my team.

Thanks
 
C

Cindy M.

Hi Projserverpm,

So, at a certain point (different address, for example) you want to continue inserting information, but on a new
page, with the same layout (table) format?

Are you working with the Word object model at all, or are you trying to do this entirely with WordProcessingML?

If the latter, I recommend you go to the OpenXMLDeveloper.org website where you'll find information and discussion
groups on working with WordProcessingML. A standard way to figure this kind of thing out, though, is to create the
result you want as an end-user, then analyze the WordProcessingML. In this case, I'd copy the empty table, move the
cursor to just after the table, insert a page break, then paste the copied table onto the new page. That should give
you the WordProcessingML for the page break, followed by a table.
We want to render XML in MS Word (2003 or up) when a user clicks on a
link. The challenge is that we've been able to do this using an
Averey label template (1 pager), however don't know how to inject XML
in a word document so it starts on the next page (and not continues at
the end of first page). I am not a developer, just trying to gather
more intel which I can forward to my team.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :
-)
 

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