> Now that is an interesting concept I have not thought of. How would you
use
XML to overcome that issue?
If you save a Word document out in XML, you can look at how Word uses
XML/HTML to store the document. For example, here's a simple document
containing Page 1<PAGE BREAK>Page 2.
It should be relatively easy to build a document like this from code.
Regards, Rob.
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./Example_files/filelist.xml">
<title>Page 1</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Rob Nicholson</o:Author>
<o:LastAuthor>Rob Nicholson</o:LastAuthor>
<o:Revision>1</o:Revision>
<o:TotalTime>1</o:TotalTime>
<o:Created>2004-01-18T13:30:00Z</o:Created>
<o:LastSaved>2004-01-18T13:31:00Z</o:LastSaved>
<o:Pages>2</o:Pages>
<o:Words>2</o:Words>
<o:Characters>12</o:Characters>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>14</o:CharactersWithSpaces>
<o:Version>9.6926</o:Version>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-GB style='tab-interval:36.0pt'>
<div class=Section1>
<p class=MsoNormal>Page 1</p>
<span style='font-size:12.0pt;font-family:"Times New
Roman";mso-fareast-font-family:
"Times New Roman";mso-ansi-language:EN-GB;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA'><br clear=all style='page-break-before:always'>
</span>
<p class=MsoNormal>Page 2</p>
</div>
</body>
</html>