FaxSendDocument function returns ERROR_INVALID_DATA

D

delmonk

Whenever I add a cover page and try to FaxSendDocument I always get the
ERROR_INVALID_DATA. I am however able to fax with no cover page. For
some strange reason this only occurs on one machine and just started to
occur recently out of the blue, I can get the fax with cover letter to
work on another machine and I use similar input parameters leading me
to think it may be some kind of system problem.
For the FAX_COVERPAGE_INFO structure
I use confident.cov for the CoverPageName, it looks for it in
C:\Documents and Settings\All Users\Documents\My Faxes\Common
Coverpages and finds it
I use sizeof(FAX_COVERPAGE_INFO) for SizeOfStruct
I set UseServerCoverPage to true

I also set values for Subject, RecName, RecFaxNumber.

If I however set this structure to a NULL it will fax however I will
get no cover page.

Any ideas?
 
R

Ravi Singh (UCSD)

Hello DelMonk

The Coverpages default location is

C:\Documents and Settings\All Users\Application Data\Microsoft\Windows
NT\MSFax\Common Coverpages

I am guessing this is the case with your other machine, where the
application works. Try changing the directory and let me know if that
works.

-Ravi Singh.
 

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