Retain Report format when e-mailing.

LEXCERM

Registered User.
Local time
Today, 15:04
Joined
Apr 12, 2004
Messages
169
Afternoon all,

I have a report which has a bit of formatting in it, i.e. shaded boxes, logo etc., to make it look presentable. My objective is to e-mail the report whilst retaining the existing format.

I have started to venture into sendobjects and have tried using several of the output formats that are available, i.e. acFormatDAP, acFormatHTML , acFormatRTF, acFormatTXT, acFormatXL, but to no avail.

Is there any way that I can achieve this?

Thanks in advance.
LEXCERM.
 
You could mail it as a snapshot but the recipient must also have the snapshot viewer installed.

It can be downloaded here.

Your code would look something like this
Code:
DoCmd.OutputTo acOutputReport, "YourReport", "snapshotformat", "C:\Temp\YourReport.snp", False
to output the report to your HDD
HTH
 
Last edited:
Thanks for the quick response.

Can you explain how I would e-mail it as a snapshot please.

Is it part of the sendobject command?

Not sure.

Thanks.
 
Thanks for the code. WIll give it a go.

Cheers.
 
Code:
DoCmd.SendObject acSendReport, "YourReport", "snapshotformat", "To", "Cc", "Bcc", "Subject", "Message", True
HTH
 

Users who are viewing this thread

Back
Top Bottom