Solved

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

Posted on 2008-06-24
24
1,503 Views
Last Modified: 2013-11-27
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.
0
Comment
Question by:Sar1973
  • 10
  • 5
  • 5
24 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 21862833
Sar1973,

Did you try contacting Symantec?

JeffCoachman
0
 
LVL 9

Author Comment

by:Sar1973
ID: 21863304
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
 
LVL 27

Accepted Solution

by:
jjafferr earned 75 total points
ID: 21876236
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 21876274
or better yet, see my 1st post in the above link.

jaffer
0
 
LVL 9

Author Comment

by:Sar1973
ID: 21893605
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
 
LVL 27

Expert Comment

by:jjafferr
ID: 21894343
>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
 
LVL 9

Author Comment

by:Sar1973
ID: 21901830
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
 
LVL 27

Expert Comment

by:jjafferr
ID: 21902032
>'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
 
LVL 27

Expert Comment

by:jjafferr
ID: 21902385
or try

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

jaffer
0
 
LVL 9

Author Comment

by:Sar1973
ID: 21910753
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 27

Expert Comment

by:jjafferr
ID: 21910890
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
 
LVL 9

Author Comment

by:Sar1973
ID: 21947143
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
 
LVL 27

Expert Comment

by:jjafferr
ID: 21947766
Here you go:

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

jaffer
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 21948696
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
 
LVL 27

Expert Comment

by:jjafferr
ID: 21951555
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
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 21955509
...and I love that spell check!
;-)
Jeff
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22129826
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
 
LVL 27

Expert Comment

by:jjafferr
ID: 22131221
LOL

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

jaffer
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22133028
Thanks
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 22138833
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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now