T
Torben Frandsen
Hi
In a VB.Net app I'm trying to enumerate the FaxJobs collection in order to
query individual fax jobs. This is my code:
Dim Jobs As FAXCOMLib.FaxJobs
Dim CurrentJob As FAXCOMLib.FaxJob
Jobs = CType(Server.GetJobs, FAXCOMLib.FaxJobs)
For i As Integer = 0 To Jobs.Count - 1
CurrentJob = CType(Jobs.Item(i), FAXCOMLib.FaxJob)
' Continue to do stuff with CurrentJob
Next
While the Object type returned by Server.GetJobs casts nicely to a FaxJobs,
the latter cast fails with message: Cannot convert to 'Interface FaxJob'.
Why is that and what can I do about it?
Torben
In a VB.Net app I'm trying to enumerate the FaxJobs collection in order to
query individual fax jobs. This is my code:
Dim Jobs As FAXCOMLib.FaxJobs
Dim CurrentJob As FAXCOMLib.FaxJob
Jobs = CType(Server.GetJobs, FAXCOMLib.FaxJobs)
For i As Integer = 0 To Jobs.Count - 1
CurrentJob = CType(Jobs.Item(i), FAXCOMLib.FaxJob)
' Continue to do stuff with CurrentJob
Next
While the Object type returned by Server.GetJobs casts nicely to a FaxJobs,
the latter cast fails with message: Cannot convert to 'Interface FaxJob'.
Why is that and what can I do about it?
Torben