Browser crashes after cancelling Printer Dialog

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
I'm developing a COM module to be used in an ASP application to fax HTML
documents programmatically using faxcom 1.0 type library (fxscom.dll). After
calling the Send() method on an instance of FAXCOMLib.FaxDoc class, a Print
dialog appears with the default fax device being selected (the behavior is
documented on http://support.microsoft.com/?kbid=841714). If the Cancel
button is pressed, the component and the browser (IE) crash.
This bug is consistent throughout using different fax service object models
(faxcom 1.0, Microsoft Fax Service Extended COM Type Library (fxscomex.dll),
FaxServer).

I haven't seen any mention of this error or fixes so far. Would much
appreciate any help or insight.
 
It seems like no one has ever experienced this problem?? Can I please get the
MVP's attention? The problem r-e-a-l-l-y exists, and not only when IE is
involved. Try the following VBScript code:

Dim FS 'as Object
Dim ServerName 'As String
Dim FD 'As Object
Dim FileName 'As String
Dim JobId 'as Long

Set FS = CreateObject("FaxServer.FaxServer")
ServerName = "yourserver"
FS.Connect(ServerName)
FileName = "yourfile.html"
Set FD = FS.CreateDocument(FileName)
FD.FaxNumber="999 9999999"

JobId = FD.Send()
msgbox "Sent!"
FS.Disconnect()

set fs=nothing
set fd=nothing

Create a .vbs file and run it. When you cancel the "Print" dialog, the
program stops responding.

Please give me your insights.

Vad
 
Back
Top