Creating a Word document in Coldfusion - how to have pagenumbering?

后端 未结 2 1925
无人及你
无人及你 2021-01-17 20:17

I am creating a Word format .doc using the following code, then cfheader and cfcontent to serve. All is good but I need to be able to place dynamic information in the header

2条回答
  •  轮回少年
    2021-01-17 20:38

    Doesn't seem easy to add page number using a WordprocessingML

    http://openxmldeveloper.org/archive/2006/08/03/443.aspx

    If you can serve PDF instead of DOC, here's a solution for page numbering.

    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c21.html

    See example 2:

     
     
        
    #cfdocument.currentsectionpagenumber# of #cfdocument.totalsectionpagecount#
    #cfdocument.currentpagenumber# of #cfdocument.totalpagecount#
    ...

提交回复
热议问题