Je crée un format Word .doc en utilisant le code suivant, puis cfheader et cfcontent pour servir. Tout est bien, mais je dois être capable de placer des informations dynamiques dans l'en-tête (ou le pied de page), ou la numérotation automatique des pages serait une deuxième meilleure option.Création d'un document Word dans Coldfusion - comment avoir le numérotage de pages?
Comment modifier le code?
<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>
Quelle version de CF? – jfrobishow
version 9.01, vous devez ajouter le texte minimum pour pouvoir commenter – Saul