|
-
Sep 20th, 2002, 09:33 AM
#1
Thread Starter
New Member
VB.net Web Application and Mailmerge
Hi
I am still a relatively new vb.net programmer and i meet with the following problem.
I have a web application that will make a txt file and will export it to C:\ (in the server)
Then it will also open a microsoft word file that will merge with this txt file (open at client side)
Now my problem is how to make the word file (at client side) mail merge with the txt file (at server side).
I would appreciate any advice that anyone can give me, prefeably if codes is included as i am not that good in vb.net yet.
Thanks !!
-
Sep 20th, 2002, 10:08 PM
#2
Thread Starter
New Member
Hi
Now i am able to open a word file with the below codes
Imports System.IO
Dim MyFileStream As FileStream
Dim FileSize As Long
MyFileStream = New FileStream("C:\LSAPP520.doc", FileMode.Open)
FileSize = MyFileStream.Length
Dim Buffer(CInt(FileSize)) As Byte
MyFileStream.Read(Buffer, 0, CInt(FileSize))
MyFileStream.Close()
Response.Clear()
Response.ContentType = "application/msword"
Response.BinaryWrite(Buffer)
Response.Flush()
------------------------------------------------------------
But it seems that i could not refresh it , seems that the data is got from the cache. However when i try to insert a merge field, it will be updated. Anyone knows why?
How do i delete the cache?
I am also pondering whether to force the user to click on
<< ABC>> as can be seen below to force them to refresh.
Anyone has any idea on how i can enable it? it is disabled
Pls advice
Thanks and Regards.
-
Sep 22nd, 2002, 07:07 AM
#3
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|