View Word Document Problem While Publishing IIS
-
HI, First I am receiving following error: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154. now resolve it n server.. i want to view document from some server location. 1) The below code is view document from some location.its properly working in local system. if i am going to publish this code in IIS, nothing can view document.. Dim WordApp As New Word.ApplicationClass() Dim missing As Object = System.Reflection.Missing.Value Dim fileName As Object = "\\XXX.XXX.X.X\d\TEST.DOC" Dim newTemplate As Object = False Dim docType As Object = 0 Dim isVisible As Object = True Dim aDoc As Word.Document = WordApp.Documents.Add(fileName, newTemplate, docType, isVisible) WordApp.Visible = True 2) The below code is converting pdf from ms word doument. this also didnt working while im phblishing code in IIS Dim filesource As Object ="\\XXX.XXX.X.X\d\test.doc" Dim app As New Word.Application Dim missingValue As Object = Type.Missing Dim ac As New Word.Application() Dim myTrue As Object = True Dim myFalse As Object = False Dim document As New Word.Document app = ac.Application app.DisplayAlerts = Word.WdAlertLevel.wdAlertsMessageBox document = app.Documents.Open(filesource, myTrue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue) app.ActivePrinter = "PDF995" 'app.ActivePrinter = "PrimoPDF" app.ActiveDocument.PrintOut(myFalse, myFalse, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, myFalse, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue) document.Close(missingValue, missingValue, missingValue) app.Quit(missingValue, missingValue, missingValue) aDoc.Activate() Please Give Solution,
Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"
-
HI, First I am receiving following error: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154. now resolve it n server.. i want to view document from some server location. 1) The below code is view document from some location.its properly working in local system. if i am going to publish this code in IIS, nothing can view document.. Dim WordApp As New Word.ApplicationClass() Dim missing As Object = System.Reflection.Missing.Value Dim fileName As Object = "\\XXX.XXX.X.X\d\TEST.DOC" Dim newTemplate As Object = False Dim docType As Object = 0 Dim isVisible As Object = True Dim aDoc As Word.Document = WordApp.Documents.Add(fileName, newTemplate, docType, isVisible) WordApp.Visible = True 2) The below code is converting pdf from ms word doument. this also didnt working while im phblishing code in IIS Dim filesource As Object ="\\XXX.XXX.X.X\d\test.doc" Dim app As New Word.Application Dim missingValue As Object = Type.Missing Dim ac As New Word.Application() Dim myTrue As Object = True Dim myFalse As Object = False Dim document As New Word.Document app = ac.Application app.DisplayAlerts = Word.WdAlertLevel.wdAlertsMessageBox document = app.Documents.Open(filesource, myTrue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue) app.ActivePrinter = "PDF995" 'app.ActivePrinter = "PrimoPDF" app.ActiveDocument.PrintOut(myFalse, myFalse, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, myFalse, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue) document.Close(missingValue, missingValue, missingValue) app.Quit(missingValue, missingValue, missingValue) aDoc.Activate() Please Give Solution,
Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"