none
Interop.Word error "Could not open macro storage" in published wcf service method

    質問

  • Hi,

    I've created the WCF service method to create a word document from template URL & published it in IIS 7.

    I'm receiving an error "Could not open macro storage" in the below code.

    Microsoft.Office.Interop.Word._ApplicationoWord = newMicrosoft.Office.Interop.Word.Application();

    Microsoft.Office.Interop.Word._DocumentoWordDoc = newMicrosoft.Office.Interop.Word.Document();

    oWord.Visible = false;

    Object oTemplatePath = templatePath;

    oWordDoc = oWord.Documents.Add(ref oTemplatePath, ref oMissing, ref oMissing, ref oMissing);

    Please suggest some solutions for my error. Thanks in adv!!


    Anandhan.S


    2012年3月7日 10:18

回答

すべての返信