Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. View Word Document Problem While Publishing IIS

View Word Document Problem While Publishing IIS

Scheduled Pinned Locked Moved ASP.NET
helpcomsysadminwindows-admin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JC KaNNaN
    wrote on last edited by
    #1

    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"

    A 1 Reply Last reply
    0
    • J JC KaNNaN

      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"

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      It looks like you do not have Word (or the correct version of it) installed on your server.

      Bob Ashfield Consultants Ltd

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups