Erstellen eines Word-Dokuments in Coldfusion - wie wird die Seitennummerierung verwendet?
Ich erstelle ein Word-Format .doc mit dem folgenden Code, dann cfheader und cfcontent, um zu dienen. Alles ist gut, aber ich muss in der Lage sein, dynamische Informationen in die Kopfzeile (oder Fußzeile) einzufügen. Andernfalls ist die automatische Seitennummerierung die zweitbeste Option.
Wie soll ich den Code ändern?
<cfsavecontent variable="myDocument">
<html xmlns:w="urn:schemas-microsoft-com:office:word">
<!--- Head tag instructs Word to start up a certain way, specifically in
print view. --->
<head>
<xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
</head>
<body>
Regular HTML document goes here
<!--- Create a page break microsoft style (took hours to find this)
--->
<br clear="all"
style="page-break-before:always;mso-break-type:page-break" />
Next page goes here
</body>
</html>
</cfsavecontent>