문제

I am working on a small project where I have to read more than 100 MS Word files and loop through each file and update their headers and footers. I want to accomplish this task in ColdFusion 10/11.

Is there any way I can get this done in ColdFusion?

도움이 되었습니까?

해결책

RIA Forge has a tool called

http://docxextractor.riaforge.org/

Which pulls data from docx files. It does not create docx files however

Disclaimer: I wrote this

다른 팁

The <cfdirectory> tag can be used to work with files in a directory, for example getting a list to process using <cfloop>.

ColdFusion does have some support for MS Office files. What you're trying to do can be done for an Excel spreadsheet, reading the file with <cfspreadsheet> and then using functions such as SpreadsheetSetFooter(), before writing the file.

However, there are no comparable functions for Word files!

Adobe ColdFusion documentation

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top