In my Asp.net web application, i have to convert one docx file into pdf file programatically.I have used microsoft interoperability word package and using the method saveAs() method.
This is my C# code...
var TheDocument = wdApp.Documents.Open("sample.docx"); //control stopped here...
TheDocument.ExportAsFixedFormat("sample.pdf", Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF,
OptimizeFor: Microsoft.Office.Interop.Word.WdExportOptimizeFor.wdExportOptimizeForOnScreen,
BitmapMissingFonts: true, DocStructureTags: false);
((Microsoft.Office.Interop.Word._Document)TheDocument).Close();
But when executing this line, var TheDocument = wdApp.Documents.Open("sample.docx");
the control stopped on this line and there is no further response.Browser symbol seems like loading, loading...
I dont know what is the issue here...
Please guide me to get out of this issue...