Re: ASP.net & VB script experts, ? for ya.

Discussion in 'ASP .Net' started by John Saunders, Aug 29, 2003.

  1. Ok, so what happens when you try that code?

    --
    John Saunders
    Internet Engineer



    "Deasun" <> wrote in message
    news:09f701c36e60$e2a5ac50$...
    > Good evening,
    >
    > I have a piece of VBscript code that works fine for me
    > except I need to pass a string value to it from code
    > behind. I have no idea how this would be done.
    > Anyone got some examples ? Heres what I have;
    >
    > In Vb code-behind:
    > Protected blnLaunchWord As Boolean = False
    > Protected strDocToLoad As String = ""
    >
    > {Under a btn click event}
    > strDocToLoad = "\\Abs_bur_s1\VOL1
    > \Data\CTShare\Batchfax\CBSBatchFax.dot"
    > blnLaunchWord = True
    >
    > HTML code as VB script:
    > <%
    > if (blnLaunchWord = True) then
    > %>
    > <script language="VBScript">
    > set objWord = createobject("Word.Application")
    > with objword
    > .visible = true
    > dim strDoc as string
    > strDoc = "<%=strDocToLoad%>"
    > .Documents.Open(strDoc)
    > end with
    > </script>
    > <%
    > blnLaunchWord = false
    > end if
    > %>
    >
    John Saunders, Aug 29, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David F. Skoll
    Replies:
    2
    Views:
    856
    David F. Skoll
    Nov 14, 2003
  2. Ira Lee
    Replies:
    0
    Views:
    723
    Ira Lee
    Jun 29, 2004
  3. Luther Miller

    Here's one for you ASP.NET experts...

    Luther Miller, Jul 3, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    335
    Luther Miller
    Jul 3, 2003
  4. B Wagner
    Replies:
    8
    Views:
    331
    B Wagner
    Aug 18, 2003
  5. littleccguy
    Replies:
    2
    Views:
    682
    Tasos Vogiatzoglou
    May 23, 2006
Loading...

Share This Page