0 Replies Latest reply on Sep 5, 2006 11:49 PM by ColdWordFuser

    Mutant Cold Fusion and Word

    ColdWordFuser
      So I am happily using after a serious effort Word Macros from Cold Fusion pages via the COM object and am looking to pass variables to the procedures now to be able to leverage them even more than I am able to.

      Currently I am executing in this manner:
      <cftry>
      <cfscript>
      WriteOutput("0<br>");
      objDoc = Application.objWord.Documents;
      WriteOutput("1<br>");
      newDoc = objDoc.open("C:\00_CATS\MstrTaskerLibrary\000000006.doc");
      WriteOutput("2<br>");
      Application.objWord.Run("TestFct");
      WriteOutput("3<br>");
      newDoc.Close();
      </cfscript>
      <cfcatch>
      <cfscript>
      objWord.Quit();
      </cfscript>
      <cfrethrow>
      </cfcatch>
      </cftry>

      What I would like to be able to do is
      Application.objWord.Run("TestFct(#Type#");
      or
      Application.objWord.Run("TestFct('Used'");

      Any ideas?

      And while we are on the subject :) of Word Infusing, any ideas of how to change the value of Custom or BuiltIn Properties...
      Form Fields I haver covered, but cannot seem to get any syntax to work on the others... and did I forget to mention that I want to create Custom Properties in a Word document , bwah hah hah haha...

      Thanks