Results 1 to 3 of 3

Thread: VB.net Web Application and Mailmerge

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    7

    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 !!

  2. #2

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    7
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    7
    Anyone can help?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width