?
Solved

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

Posted on 2008-06-24
24
Medium Priority
?
1,574 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 total points
ID: 21876236
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
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
 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

764 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