Change Fax Printer

D

Draya

Hello,
I am faxing from Access 2000 .adp using faxcom 1.0 type library.
When the default printer is my Fax printer, the fax is sent out just
fine. If my default printer is my regular printer, I get the
following error: Error # -2147024883 probably because the default
printer can't be found or it is turned off. How do I choose/set the
Fax printer so that no matter which is the default printer the fax
will be sent to the fax printer?

FaxServername = "MyCompterName"
Set faxObj = CreateObject("FaxServer.FaxServer")
faxObj.Connect (FaxServername)

Dim FaxDoc As Object
Set FaxDoc = faxObj.CreateDocument(FileNameAndPath_ToFax)
FaxDoc.faxNumber = "5555555"
FaxDoc.RecipientName = "John Doe"
FaxDoc.DisplayName = "John Doe"
FaxDoc.SendCoverpage = False
FaxDoc.SenderCompany = "ACME Co."
FaxDoc.Send


Thanks
 
R

Raghavendra R [MSFT]

That error is HRESULT 0x8007000D which is (net helpmsg 13)
"The data is invalid."

So check the validity of your data

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 

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