tags:

views:

27

answers:

1

I can't find a way to do this anywhere, not even a mention of it. But is there is a way to programmatically cancel a fax using, say, a faxserver or faxdocument object? My current code looks something like this:

Set doc=CreateObject("FaxComEx.FaxDocument")
Set server=CreateObject("FaxComEx.FaxServer")
server.Connect ""
doc.Body="c:\somefile.txt"
doc.DocumentName="test fax"
doc.Recipients.Add "1555555555555"
doc.Priority = 1
doc.ConnectedSubmit(server)

Using the faxserver.faxserver and faxserver.faxdoc objects doesn't look much more promising, as the only faxdoc method I see is Send. Is canceling a fax just not possible? Thanks!

+1  A: 

A related class to FaxDocument is FaxOutgoingJob that has a Cancel method.

I've never used it myself but I think that what you have to do is to use the FaxAccountFolders object and it's OutgoingQueue property which has a GetJobs method.

ho1
That's a pretty good answer, but I'm having problems using the results of the GetJobs method in vbscript, since it only likes variants and not strings.
Joe Majsterski
@Joe: I wrote an answer to your new question which *might* be helpful.
ho1
Since this solved my problem when I converted to vb6, I'm checking this as the official solution. Thanks again.
Joe Majsterski