Cancel fax in vbscript
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,开发者_如何学JAVA 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!
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.
精彩评论