Send a fax with VBA (Access): which string and declarations?

Hi I have both WinFax 10.0 and Console Fax installed as printers; I would like to send a fax with a few lines, such as:
set default printer="Fax"
activedocument.print "Recipient", "Number", ....
or with a string indicating fax IP/address, etc.
Is it possible? Thanx.
LVL 9
Sar1973Asked:
Who is Participating?
 
jjafferrConnect With a Mentor Commented:
0
 
Jeffrey CoachmanMIS LiasonCommented:
Sar1973,

Did you try contacting Symantec?

JeffCoachman
0
 
Sar1973Author Commented:
No, since the first effort I want to do will be with Windows Fax Console; definitely I want to set the parameters of the print code line that allow to send the fax with VBA.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
jjafferrCommented:
or better yet, see my 1st post in the above link.

jaffer
0
 
Sar1973Author Commented:
Done it: and if I would do it with console fax? It is simply a Windows fax service that you can use by sending documents to a virtual printer; then you have to follow a dialog box in which you are required to insert fax number, recipient, etc.
I would like to do it with code instead, like the WinFax module link you have posted. Thanx.
0
 
jjafferrCommented:
>I have both WinFax 10.0 and Console Fax installed
so I gave the example of winFax :)

did a search and found a few links for the Console fax:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_20574738.html#8368672

check the VB code in link below:
http://msdn.microsoft.com/en-us/magazine/cc301661.aspx
http://msdn.microsoft.com/en-us/magazine/bb985732.aspx

http://sandlerco.com/VBScript.htm

and I am sure there are more.

jaffer
0
 
Sar1973Author Commented:
Tried both; only have a problem in scheduling Fax Service. Thse lines are not recognised:
'Specify that the fax is to be sent at a particular time
objFaxDocument.ScheduleType = fstSPECIFIC_TIME
'CDate converts the time to the Date data type
objFaxDocument.ScheduleTime = CDate("4:35:47 PM")
0
 
jjafferrCommented:
>'Specify that the fax is to be sent at a particular time
>objFaxDocument.ScheduleType = fstSPECIFIC_TIME
>'CDate converts the time to the Date data type
>objFaxDocument.ScheduleTime = CDate("4:35:47 PM")

I am only guessing here:
omit this line:
objFaxDocument.ScheduleType = fstSPECIFIC_TIME

and change this line to:
objFaxDocument.ScheduleTime = ("4:35:47 PM")
0
 
jjafferrCommented:
or try

Dim MyTime
MyTime = #4:35:00 PM#
objFaxDocument.ScheduleTime = MyTime

jaffer
0
 
Sar1973Author Commented:
I will: I am now wondering if the best way is to send a fax with Outlook, since I have a service installed.
If I set recipient address "[Fax: 123-456]" does not work; if I set "Recipient@123-456" Outlook asks me to add recipient to the address book (but I do not want to).
Is there a simple way to use this Console Fax to send a fax with email by attaching the fax document and typing somewere the fax number? Thanx.
0
 
jjafferrCommented:
Sar1973

I am sorry, but i don't have an idea about Outlook fax.

I have noticed you jumping around from one thing to another, namely WinFax 10.0, then Console Fax, and now sending fax with Outlook.

If you think none of my replies solved your question, then you can ask Customer Support to close this Q.

jaffer
0
 
Sar1973Author Commented:
The problem is that:
1)if I would use Console, I won't have the chance to schedule faxes since the commandScheduleTime is not accepted (probably because of my libraries)
2)if I would use Outlook, I am asked to charge previously the address book
I am now wondering of printing to fax printer, but I don't know how to do it with VBA: can you help please?
0
 
jjafferrCommented:
Here you go:

Reports: Change printers from code
http://www.mvps.org/access/reports/rpt0009.htm

jaffer
0
 
Jeffrey CoachmanMIS LiasonCommented:
jaffer,



Sorry, I did not notice that.
I did not mean to be rude and not reply.
(I'm doing fine by the way)

After you stepped in, I just sat back and watched you perform your usual magic!
;-)

Jeff
0
 
jjafferrCommented:
LOL
 
Thanks Jeff, No worries, I was sure you didn't notice my tiney note,
but now that EE has this new bold italic and underline features, things should be more visible :) (oh, they don't have emotions yet 8-)

thanks for your reply.

jaffer
0
 
Jeffrey CoachmanMIS LiasonCommented:
...and I love that spell check!
;-)
Jeff
0
 
Jeffrey CoachmanMIS LiasonCommented:
Sar1973,

You Accepted my post about Spell check?

If my post did not specifically solve your issue, you are under no obligation to Accept it.

Accepting a post closes the question.
So if anyone searching here finds this question, they will wonder why a post about "Spell Check" is the Accepted answer.

Please click the "Request Attention" button in your original post and have this corrected.

Thanks

JeffCoachman  
0
 
jjafferrCommented:
LOL

Well Jeff, since Sar1973 didn't contact Customer Support, I did :)

jaffer
0
 
Jeffrey CoachmanMIS LiasonCommented:
Thanks
0
 
jjafferrCommented:
VM

Thanks for your help, always appreciated :)

The solution to use WinFax 10 was posted on:
www.experts-exchange.com/Q_23512317.html#21876236

So I recommend selecting it as the correct answer.

jaffer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.