Author: shiva994u | Posted on: 8/12/2008 11:48:02 PM | Views : 271

Hi Every one,

i am having proble while creating Word Document.Please help and copyed my code below

string path = Server.MapPath("~/xls") + "\\Itinerary.doc";
        object fileName = path;
        object outFilename = Server.MapPath("~/xls") + "\\output.doc";
        if (System.IO.File.Exists(outFilename.ToString()))
            System.IO.File.Delete(outFilename.ToString());
        object readOnly = false;
        object isVisible = true;
        object missing = System.Reflection.Missing.Value;
        Object template = Type.Missing;
        ...

Go to the complete details ...