How to Open the Docx File in Silverlight
-
How to open the Docx file using 'microsoft.office.interop.word' this DLL. I Used Following code. Object SubTemplateFilePath = @"D:\TemplateMaster\Test1.docx"; Microsoft.Office.Interop.Word._Application oWord; Microsoft.Office.Interop.Word._Document oDoc; oDoc = oWord.Documents.Open(SubTemplateFilePath); When pointer go above statement then Silverlight application go endless loop. When Application put on local machine then application work very well but when application on IIS then get the error. I put all the setting in IIS. For Eg identity is localsystem but it is not working. Please help me.
-
How to open the Docx file using 'microsoft.office.interop.word' this DLL. I Used Following code. Object SubTemplateFilePath = @"D:\TemplateMaster\Test1.docx"; Microsoft.Office.Interop.Word._Application oWord; Microsoft.Office.Interop.Word._Document oDoc; oDoc = oWord.Documents.Open(SubTemplateFilePath); When pointer go above statement then Silverlight application go endless loop. When Application put on local machine then application work very well but when application on IIS then get the error. I put all the setting in IIS. For Eg identity is localsystem but it is not working. Please help me.
So is this code running on the web server or is it part of a Silverlight app running on the client? Does the client have the same version of Word installed as the version you referenced when you built the code?
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
How to open the Docx file using 'microsoft.office.interop.word' this DLL. I Used Following code. Object SubTemplateFilePath = @"D:\TemplateMaster\Test1.docx"; Microsoft.Office.Interop.Word._Application oWord; Microsoft.Office.Interop.Word._Document oDoc; oDoc = oWord.Documents.Open(SubTemplateFilePath); When pointer go above statement then Silverlight application go endless loop. When Application put on local machine then application work very well but when application on IIS then get the error. I put all the setting in IIS. For Eg identity is localsystem but it is not working. Please help me.
Instead of using the Office Interop libraries, you may want to take a look at DocX[^], which is a pure C# library for handling Microsoft Word files. I am not sure if it works in Silverlight (I can't find anything about that configuration), but if it does it might help you.
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
-
How to open the Docx file using 'microsoft.office.interop.word' this DLL. I Used Following code. Object SubTemplateFilePath = @"D:\TemplateMaster\Test1.docx"; Microsoft.Office.Interop.Word._Application oWord; Microsoft.Office.Interop.Word._Document oDoc; oDoc = oWord.Documents.Open(SubTemplateFilePath); When pointer go above statement then Silverlight application go endless loop. When Application put on local machine then application work very well but when application on IIS then get the error. I put all the setting in IIS. For Eg identity is localsystem but it is not working. Please help me.
The browser does not have access to your D: unless the app is installed as out of browser on your local system with elevated permissions. You need to download the docx and get the user to open the file, you cannot do it from the browser (Silverlight).
Never underestimate the power of human stupidity RAH
-
The browser does not have access to your D: unless the app is installed as out of browser on your local system with elevated permissions. You need to download the docx and get the user to open the file, you cannot do it from the browser (Silverlight).
Never underestimate the power of human stupidity RAH
I all ready installed on server but still I have problem.
-
I all ready installed on server but still I have problem.
Installed what on the server! I repeat, you need to download the DocX file as a binary (probably), get the user to save it on their local (D:) drive and then the user must open the file in word. Without elevated permissions Silverlight cannot access a local drive.
Never underestimate the power of human stupidity RAH