FaxSendDocument function returns ERROR_INVALID_DATA

  • Thread starter Thread starter delmonk
  • Start date Start date
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?
 
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.
 
Back
Top