Prev Previous Post   Next Post Next

VBScript and ConnectedSubmit when sending faxes

Posted: 11-05-2003, 10:24 AM
I am using VBScript to send a fax, and I'm following the sample code
given in the Platform SDK:

Set doc=CreateObject("FaxComEx.FaxDocument")
Set server=CreateObject("FaxComEx.FaxServer")
Dim JobID
server.Connect ""
doc.Body="c:\x.tif"
doc.DocumentName="Sample Fax"
doc.Recipients.Add "02076819999"
doc.Priority = 1
JobID = doc.ConnectedSubmit(server)

Everything works, and the fax is sent, but there seems no way of getting
at the content of JobID.

TypeName() reports the type as "String()" and VarType reports 8200 (an
array of vbString), but trying to refer to JobID(0) generates a type
mismatch, and trying something like Join(JobID) produces error 800A01CA
"Variable uses an Automation type not supported in VBScript".

My guess is that VBScript can't handle arrays of strings, only arrays of
Variants. Does anyone have any experience of this? Or any way round the
problem??
Reply With Quote

Responses to "VBScript and ConnectedSubmit when sending faxes"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
RD VBScript error from anywhere cowwilly Windows XP Work Remotely 1 01-05-2004 12:16 AM
Remote Connection using VBScript Gaurav Agarwal Windows XP Work Remotely 1 11-17-2003 01:16 AM
"Select Printer" pops up after calling ConnectedSubmit () Jonny Windows XP Printers / Scanners / Fax 1 11-10-2003 04:48 PM
vbscript scribt file jackie Windows XP Music 2 10-18-2003 06:21 AM
Sending and Receiving faxes Charlotte J. Tigner Windows XP Printers / Scanners / Fax 2 08-09-2003 03:55 AM