Hi All:
I have a report that is send to an HTML file and then the HTML file is specified as the HTMLbody of an outbound message.
The problem I am having is that if the report spans multiple pages, the first page is set as the HTML body, but any subsequent pages are not. As I look into the actual HTML file that is created by the report, there is one file for each page.
How do I tell a report to save to a one-page HTML file rather than splitting it up into multiple pages?
Code:
DoCmd.OutputTo acOutputReport, varReportName, acFormatHTML, varApprovalRequest
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItemFromTemplate(varEmailTemplate)
With objEmail
.To = varSendTo
.cc = varSendCC
.Subject = varSubjectText
.HTMLBody = varHTMLBody
.Attachments.Add varApprovalRequest
.Display
.SentOnBehalfOfName = varSendFrom
End With