Browser Enable a VB Script

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello

Below is a code in VBScript to send fax. I want to enable this code to run from IE. Can anyone help?

Thank You

-------------
Here is the code.
-----------------
Set FaxServer = WScript.CreateObject("FAXCOMEX.FaxServer")

CheckError("WScript.CreateObject(FAXCOMEX.FaxServer)")

WScript.Echo "FaxServer created"


' Connect to the fax server. Specify computer name if the server is remote. See How to connect to a remote Fax Service for details.

FaxServer.Connect ""

CheckError("FaxServer.Connect")


Set FaxDoc = WScript.CreateObject("FAXCOMEX.FaxDocument")

CheckError("WScript.CreateObject(FAXCOMEX.FaxDocument)")



' Set file name of any printable document.

FaxDoc.Body = "test.rtf"

CheckError("FaxDoc.Body")

FaxDoc.DocumentName = "My First Fax"


' Add recipient's fax number. If this string contains a canonical fax number
' (starting with plus + followed by country code, area code in round brackets and the fax number),
' the Fax Service will translate that number into dialable format in accordance with your current location.
' Otherwise, make sure the international prefix or long distance prefix is specified when needed,
' as the fax number will be passed on to a fax driver (Fax Service Provider) unchanged.
' For example, sending a fax from San Francisco to Sydney's fax number 123456, the canonical address
' +61(2)123456 will be translated into dialable address 011612123456..
' If you are using T37FSP in conjunction with Internet Fax Service, specify absolute address
' 612123456 (without leading plus, to avoid translation into dialable format),
' as Internet Fax Service expects the number in the absolute format.

FaxDoc.Recipients.Add ("612123456")


' Optionally, set the sender properties.
' T37FSP uses only FaxDoc.Sender.Email in Windows Server 2003 for delivery status notifications.

FaxDoc.Sender.Email = "bob@xxxxxxx"

FaxDoc.Sender.Name = "Bob"

FaxDoc.Sender.FaxNumber = "7777777"


' Optionally, you can control banner in outbound faxes
FaxServer.Folders.OutgoingQueue.Branding = True ' True to set banner on, False to set banner off
FaxServer.Folders.OutgoingQueue.Save ' Make the change persistent

' Optionally, use FaxServer.Folders.OutgoingQueue.Retries and FaxServer.Folders.OutgoingQueue.RetryDelay
' to control retries


' Submit the document to the connected fax server and get back the job ID.

JobID = FaxDoc.ConnectedSubmit(FaxServer)

CheckError("FaxDoc.ConnectedSubmit")

WScript.Echo "FaxDoc.ConnectedSubmit success"
.



Relevant Pages

  • drum corps and technology (was Re: DCI Finals scoring gaps 1972-2009
    ... Internet document format? ... To expect a related response, ...
    (rec.arts.marching.drumcorps)
  • Re: Aint windows grand...NOT
    ... one of these newsgroups complaining that MS Windows is the problem.. ... Linux is coded MUCH better?.. ... INTERNET OPTIONS and look for the button to do this.. ... > I need to format, as i mentioned before, because Windows ...
    (microsoft.public.windowsxp.hardware)
  • Re: Another multivalue synonym question
    ... The only way is to write a PB subroutine and format the data exactly the ... The whole purpose of the translate from day one was to return a single ... If I do a synonym for the IM file which has the same key ... Any way to get the synonym to display the data nicely? ...
    (comp.databases.pick)
  • Re: IE Hijack virus survived a full hard drive reformat
    ... The virus didnt survive your formating, ... BTW you cannot format your sys drive within win. ... > I spent the best part of the weekend trying to fix my PC after Internet ... > connection. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Complicated Formulas
    ... We have a 'matrix' to translate the data from one ... > format to another. ... All the codes from one system ... > I think Im going to have to use some VB todo this which I know almost ...
    (microsoft.public.excel.worksheet.functions)