P
Pallavi Kulkarni.
Hello,
I want to create template and after adding values to bookmark i want to
create word doc..but as this is a web application i dont want to save
resultant doc file on server..so is there any way by which i can create
stream of doc contents and if want download them...
Even i wnt to know how to close WinWord process in blow written code
Private Sub Command1_Click()
Dim wrdApp As Word.Application
Dim curDoc As Document
Dim newDoc As Document
Dim str As String
Dim bm As Bookmark
Dim i As Integer
Set wrdApp = New Word.Application
wrdApp.Visible = False
wrdApp.Documents.Open "F:\WordWrite\Name.dot"
str = ""
Set curDoc = wrdApp.ActiveDocument
For i = 1 To curDoc.Bookmarks.Count
curDoc.Bookmarks(i).Range.Text = "Pallavi"
Next i
Word.ActiveDocument.SaveAs "F:\WordWrite\done1.doc"
Word.ActiveDocument.Close
End Sub
I want to create template and after adding values to bookmark i want to
create word doc..but as this is a web application i dont want to save
resultant doc file on server..so is there any way by which i can create
stream of doc contents and if want download them...
Even i wnt to know how to close WinWord process in blow written code
Private Sub Command1_Click()
Dim wrdApp As Word.Application
Dim curDoc As Document
Dim newDoc As Document
Dim str As String
Dim bm As Bookmark
Dim i As Integer
Set wrdApp = New Word.Application
wrdApp.Visible = False
wrdApp.Documents.Open "F:\WordWrite\Name.dot"
str = ""
Set curDoc = wrdApp.ActiveDocument
For i = 1 To curDoc.Bookmarks.Count
curDoc.Bookmarks(i).Range.Text = "Pallavi"
Next i
Word.ActiveDocument.SaveAs "F:\WordWrite\done1.doc"
Word.ActiveDocument.Close
End Sub