FaxGetJob and jobid's


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
 
Ad

Advertisements

N

Nihad

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
 
A

Alex Feinman [MVP]

Have you got this resolved, or do you still need help?
 
S

Sean Capstick

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
 
Ad

Advertisements

A

Alex Feinman [MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top