Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2006, 04:03 AM
Registered User
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word automation is not working in terminal server

I am having problem with word automation. my coding is working fine in local system.but it is not working in the terminal server. i am using word2003 professional but terminal server contains word2003 standard.please anyone help me.

 <%
    Set WordServer = Server.CreateObject("Test.Wordserver")
    Set objWordobject = WordServer.GetWord 'Get Word instance

     objWordobject.Visible = True

   strTemplate="c:\template.dot"
  'Open doc
          Set objDocobject=objWordobject.Documents.add(strTempla te)

%>


 Option Explicit
    Private mwrdApp As Word.Application 'Holds Word instance


    Private Sub Class_Initialize ()
      Set mwrdApp = New Word.Application 'Create Word instance
    End Sub


    Private Sub Class_Terminate ()
      mwrdApp.Quit 'Kill Word instance
      Set mwrdApp = Nothing 'Kill reference
    End Sub


    Public Function GetWord () As Word.Application
      Set GetWord = mwrdApp 'Return Word instance
    End Function


Thanks,
Kalees





Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Automation TheNoobiest Beginning VB 6 1 November 9th, 2007 03:11 PM
Word Automation in XP bmains ASP.NET 1.0 and 1.1 Professional 0 July 21st, 2004 09:27 AM
Access on Terminal Server rbrady Access 0 April 14th, 2004 08:43 AM
Word automation in VB bobshark VB How-To 1 June 13th, 2003 08:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.