Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18001
Number of posts: 55374

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
FAXCOMEXLib: JobID from ConnectedSubmit to OnOutgoingJobChanged Posted by verb on 20 Apr 2005 at 4:28 PM
I use the Microsoft Fax Service Extended COM Library.

I submit a document to the local fax server using the FaxDocument.ConnectedSubmit method and I get back the job ID.
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxinta_n_5cfo.asp))
MSDN example - Sending a Fax:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxusing_27co.asp

I want to retrieve the same job ID on the FaxServer_OnOutgoingJobChanged event (so as to move the sent document to another folder).
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxinto_z_3xus.asp)
MSDN example - Registering for Fax Events:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxusing_3u5v.asp

The problem is that the job ID returned from the FaxDocument.ConnectedSubmit method (ex. 144613567377692395) is different from the bstrJobId parameter of the FaxServer_OnOutgoingJobChanged event (ex. 201c545f93fd6eb). Can you help me?

Report
Re: FAXCOMEXLib: JobID from ConnectedSubmit to OnOutgoingJobChanged Posted by dtrusty on 24 Apr 2005 at 7:05 AM
I'm having the exact same issue. Have you gotten anywhere with this?
Report
Re: FAXCOMEXLib: JobID from ConnectedSubmit to OnOutgoingJobChanged Posted by dtrusty on 24 Apr 2005 at 7:55 AM
Alright, I figured it out... The return value is a decimal representation and the Id in the job is hex.. just convert the return value to hex and get the job that way. Hope this helps.

String[] o = (String[])document.Submit(computer);

String rv = o[0];
long rvdec = Int64.Parse(rv);
String rvhex = rvdec.ToString("X");

FaxOutgoingJob job1 = server.Folders.OutgoingQueue.GetJob(rvhex);
Report
Re: FAXCOMEXLib: JobID from ConnectedSubmit to OnOutgoingJobChanged Posted by fbova on 23 Jun 2011 at 5:16 AM
Glad you got it figured out. This library has plagued me for many nights. I stumbled upon this page for common faxcomexlib problems a while back and even though I didn't help me in the end, others might find it useful.

(BTW, sorry for bumping such an old thread, but since this are many similar problems, it made sense to post it somewhere).
Report
This post has been deleted. Posted by fbova on 23 Jun 2011 at 5:19 AM
This post has been deleted.
Report
This post has been deleted. Posted by fbova on 23 Jun 2011 at 5:21 AM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.