FaxGetJob and jobid's

  • Thread starter Thread starter Sean Capstick
  • Start date Start date
S

Sean Capstick

I have successfully implemented sending a fax into our software but I'm
having a problem retrieving the status. When I submit a fax, I get back a
job number. The first number was 1, and it's always going up by 1 each time
I send. Seems fine. If I call GetFaxJob though for any of those IDs, I get
an invalid parameter error. If I go into the fax console and look at the
properties on a fax, it displays JobID's like 0x0201c5fa84b842a6. Here's
the code in case I did something wrong. Are the job id's in the fax
console right or should they be 1,2,3... like the ones I got when submitting
the fax?

HANDLE hFaxServer;
PFAX_JOB_ENTRY pFJE;

if (!FaxConnectFaxServer("", &hFaxServer))
{
writeOutputString("MSFax - Unable To Connect To Server\n");
return;
}

if (FaxGetJob(hFaxServer, nJobID, &pFJE))
{
// do stuff, never gets here
}
--
Silk Dimensions Systems Inc.
Sean Capstick, Programmer/Analyst
(e-mail address removed)
Phone: (800) 731-9026 Fax: (519) 685-0907
Solutions for the Home Improvement Industry
 
In VB ..

JobID = objFaxDocument.ConnectedSubmit(objFaxServer)

MsgBox "The Job ID is :" & JobID(0)
Exit Sub

If it does not return a hex number use the Hex() function
 
Well. it still doesn't work as it should but by putting my own number
into one of the text fields, I can track the faxes. There's definately a
lot of problems with this fax system, I don't know if MS plans to fix them.

Sean
 
Could you post a code snippet around the place where you submit a job and
then try to open it?
Also, what OS are you using?
 
Back
Top