I have a student registration database, that prints a report to PDF. I am
using the sendObject method to create an E-mail and write THAT student's
registration to a report for him.
I am trying to automate the process, so it will cycle through each of the
students without user intervention. Right now, it will
1. create the report, 2. create the E-mail (with inserted E-mail address and
message), but I have to
1. Save the PDF report to file
2. Attach it to the E-mail
3. Send. it.
So, my question is, from a SendObject E-mail object, how do I automate the
steps:
A. "Save"
B. Replace? "Yes"
C. Find File
D. Insert file (to SendObject mail object).
E. Send E-mail.
Is there a macro language I can reference and use in VBScript or something?
(I figure for step C I will make a variable that will hardcode a location,
and the file name, and tell it to look at THAT location for a file with THAT
name.
But is there a reference for the script wording fo the rest? Thanks in
advance. 1 3783
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Use the info in the MS KB article "Using Automation to Send a Microsoft
Outlook Message," Article ID: Q161088; at URL: http://support.microsoft.com/default...b;en-us;161088
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQtKhNoechKq OuFEgEQIeJwCgh7 XV4RwVDs2vF3aBp oNPH2gv8CMAnjj4
J94vz7wSTLUBPhF Nikzegd9N
=ITlD
-----END PGP SIGNATURE-----
AJ wrote: I have a student registration database, that prints a report to PDF. I am using the sendObject method to create an E-mail and write THAT student's registration to a report for him.
I am trying to automate the process, so it will cycle through each of the students without user intervention. Right now, it will 1. create the report, 2. create the E-mail (with inserted E-mail address and message), but I have to
1. Save the PDF report to file 2. Attach it to the E-mail 3. Send. it.
So, my question is, from a SendObject E-mail object, how do I automate the steps:
A. "Save" B. Replace? "Yes" C. Find File D. Insert file (to SendObject mail object). E. Send E-mail.
Is there a macro language I can reference and use in VBScript or something? (I figure for step C I will make a variable that will hardcode a location, and the file name, and tell it to look at THAT location for a file with THAT name.
But is there a reference for the script wording fo the rest? Thanks in advance.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MLH |
last post by:
I want to send 2 reports using SendObject.
Something like this would do nicely...
DoCmd SendObject A_REPORT, "rpt1";"rpt2", A_FORMATRTF, MyRecip, , ,
MySubject, MyBodyText, 0
....except for the fact that this syntax won't compile.
Suggestions?
|
by: Jay Bienvenu |
last post by:
I'm having a very strange problem that currently defies explanation. I
use the code below to send a status report to a client. The intent is
to send the user the report via fax using WinFax and/or email it using
Outlook. The problem is that after executing the DoCmd.OpenReport
command (fax) or DoCmd.SendObject command (email), the code simply
stops running. No error message, no indication that there is a logical
reason for this code to...
|
by: jdph40 |
last post by:
I'm using Access 97. In the OnClick event of a button I have the code
below. I looks at txtEmail and sends an e-mail message without
further action from the user (user does not have to click Send as he
would if he used DoCmd.SendObject.) However, I want to attach a
report in Snapshot format. How would I modify my code to include a
report?
Thank you,
JD
|
by: Alfred |
last post by:
Hi
I am using access 2002
1.0 I want to email a word or html file using the docmd.sendobject The
document must be send as a attachment.
2.0 Second I would like to tell the Docmd.Sendobject to take the Info in a
html or word document and to use it as the body of the email message.
Is this possible. How can I do this.
Thanks Alfred
|
by: Fred |
last post by:
I want to insert DHL and FedEx tracking links with the waybill numbers in
the body of emails I am sending using sendobject. I am not sending
attachments. DHL and FedEx use long links that truncate in plain text
format.
How do I send an html formatted body in sendobject?
Or does DHL and FedEx have a shorter link?
Thanks.
| |
by: Peter Wright |
last post by:
Using MSAccess XP how can I use the DoCmd.SendObject to send email
using Lotus Notes - we can pop-up a Notes email form completed with
header and body data, but need to despatch the email using office
automation.
TIA
Peter Wright
|
by: D.Tulenson |
last post by:
The following module, which works just fine, is designed to mass
e-mail info to individual projects but the attachment is always
"rptexpendituredetail.xls".
Is there any way to change the attachment's filename each during each
loop so each project can receive a uniquely named file??
FYI, rptexpendituredetail is the name of the Access report that
filters the data for each project based on a query....
|
by: Marcus |
last post by:
Is there a way to have Access 2002 open a particular email client, when
using DoCmd.SendObject? So far, Access simply opens the default email
client that is set under Control Panel/Internet Options.
I would like to open the email client for Netscape Communicator 4.78,
or Netscape 7.1. I'm not very sure, but I think calling these email
clients might have something to do with dll files.
I am using the following code:
|
by: mdshafi01 |
last post by:
Hello my code is here.
here i am unable to execute my perl programs .
please help in this regards,
#!/usr/bin/perl
use warnings;
use strict;
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |