Eljefegeneo
Still trying to learn
- Local time
- Yesterday, 16:23
- Joined
- Jan 10, 2011
- Messages
- 902
I have a two page report that is showing an extra page at times. The code I use to send the report is:
It seems to work fine on my computer, that is, it only sends the two pages of the report to pdf format. But on one or two other computers at work it adds a third page to the report when sending it as a pdf, the third page blank except for the header.
The first page of the report is a contract; the second page is merely the boiler plate that one usually finds on the revere side of a contract. Page one and page two are split up with a page break.
Is there some way to send only two pages to the pdf format to be included with the email. Something like the way you can set a print object to only print two pages.
And yes, I have fiddled with the size of the report pages.
What drives me crazy is that it works fine on one computer but not another.
Code:
DoCmd.SendObject acSendReport, MyRpt, acFormatPDF, MyEmail, Nz(Forms!frmContracts.ECC, ""), Nz(Forms!frmContracts.EBCC, ""), "Contract for" & " " & [CStationName], Format(Date, "Long Date") & Chr(10) & Chr(13) & Chr(13) & MsgSt
The first page of the report is a contract; the second page is merely the boiler plate that one usually finds on the revere side of a contract. Page one and page two are split up with a page break.
Is there some way to send only two pages to the pdf format to be included with the email. Something like the way you can set a print object to only print two pages.
And yes, I have fiddled with the size of the report pages.
What drives me crazy is that it works fine on one computer but not another.