I want server(IIS) to ceate a word doument and users can download this file BY ie.
i use the solutions of MS WORD AUTOMATIONS,the codes like below:
using Word = Microsoft.Office.Interop.Word;
private Word.ApplicationClass oWordApplic;
private Word.Document oDoc;
oWordApplic = new Word.ApplicationClass();
object missing = System.Reflection.Missing.Value;
oDoc = oWordApplic.Documents.Add(ref missing, ref missing,ref missing, ref missing);
oDoc.Activate();
oWordApplic.Selection.TypeText("test");
oDoc.SaveAs("tes.doc", ref missing,ref missing, ref missing,ref missing,ref missing,ref missing,
ref missing,ref missing,ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
oWordApplic.Application.Quit(ref missing, ref missing, ref missing);
this codes works well on my local machine,but when i publish this asp.net project on the server, the code do not work AND there is no any prompt message or error message.
no file is created and no any alert message.
anyone can help me??
I find the cause of this problem!
in the web.config, if i set the <compilation debug="false">(release), the issue occurs
if I set the <compilation debug="true"> (debug), the programs works well.
but I do not know why? and I publish a debug version to the server ?
anyone can help me ???