在 vbscript 中取消传真
我在任何地方都找不到执行此操作的方法,甚至没有提及。但是有没有一种方法可以使用传真服务器或传真文档对象以编程方式取消传真?我当前的代码看起来像这样:
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)
使用faxserver.faxserver 和faxserver.faxdoc 对象看起来并没有多大前途,因为我看到的唯一faxdoc 方法是Send。取消传真是不可能的吗?谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与
FaxDocument
相关的类是 取消的">FaxOutgoingJob 方法。我自己从未使用过它,但我认为您要做的是使用 FaxAccountFolders 对象,它是 OutgoingQueue 属性,具有 GetJobs 方法。
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.