Help me!
-
I write a DLL, in that i create a Word application object for open a Word document. In VB app, it works well. But when i use that DLL in an ASP project. It doesn't work. How can i do that? Use Web service? I want to write a Web application like Mail Merge in VB. Give me some idea to write it for the Web. Thanks a lot!
-
I write a DLL, in that i create a Word application object for open a Word document. In VB app, it works well. But when i use that DLL in an ASP project. It doesn't work. How can i do that? Use Web service? I want to write a Web application like Mail Merge in VB. Give me some idea to write it for the Web. Thanks a lot!
write me the ASP code FF
-
write me the ASP code FF
-
write me the ASP code FF
ASP Code: <% Set objTest = Server.CreateObject("TestCOM.Test") objTest.PhysicalPath = Request.ServerVariables("APPL_PHYSICAL_PATH") objTest.gstrName = "aa.doc" Call objTest.OpenFile() %> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ VB Code: Option Explicit Private WithEvents mobjWordApp As Word.Application Private WithEvents wrdDoc As Word.Document Private m_gstrName As Variant Private m_PhysicalPath As Variant Public Property Get PhysicalPath() As Variant PhysicalPath = m_PhysicalPath End Property Public Property Let PhysicalPath(ByVal Value As Variant) m_PhysicalPath = Value End Property Public Property Get gstrName() As Variant gstrName = m_gstrName End Property Public Property Let gstrName(ByVal Value As Variant) m_gstrName = Value End Property Private Sub Class_Initialize() Set mobjWordApp = CreateObject("Word.Application") End Sub Private Sub Class_Terminate() Set mobjWordApp = Nothing End Sub Public Sub OpenFile() Dim Doc_Path As String Doc_Path = Me.PhysicalPath & "TempFiles\" & Me.gstrName Call mobjWordApp.Documents.Open(Doc_Path, False, False) Set wrdDoc = mobjWordApp.ActiveDocument Doc_Path = Me.PhysicalPath & "TempFiles\TestResult.doc" Call wrdDoc.SaveAs(Doc_Path) wrdDoc.Close Set wrdDoc = Nothing mobjWordApp.Quit End Sub +++++++++++++++++++++ Thanks any way!