Skip to main content
Inspiring
January 22, 2007
Question

How to set document properties

  • January 22, 2007
  • 1 reply
  • 310 views
Is their any way to set the document properties for Word, Excel, Powerpoint and Adobe files through Coldfusion? (by properties I mean when you open up MS word for intance and then you go to the file menu and select properties, you get the dialogue box to set the author, title, subject etc. Is there a class that does this?

basically i want Coldfusion to go through a directory containing these filoetypes and then setting the proeprties. I think i need to use a COM object? If this is the case how can i implement this via CF?

any help apprciated on this.

Thanks
This topic has been closed for replies.

1 reply

Participating Frequently
January 22, 2007
Hi

on windows OS give it try
objCom = CreateObject("COM", "Scripting.FileSystemObject");

Java object
objJava = createObject("java", "java.io.File");

as i am not JAVA guru find appropiate method and play around

Thanks