Eljefegeneo
Still trying to learn
- Local time
- Yesterday, 16:15
- Joined
- Jan 10, 2011
- Messages
- 904
I am trying to save a report as a pdf file, but I want only the first page. The problem is that the report seems to be just a little bit too long in length. I have tried the following on the report's (1) report header, (2) the page header and (3) the detail section.
The idea was to eliminate the page header which seems to be the problem as it wants to be exported as a second page.
If I use either of the two different codes above, Cancel = Me.page = 2 or Cancel = Me.page>1 I still get a second page, but it is blank. Since I am sending the pdf version of the report (it is an invoice), it shows as there being two pages.
Any suggestions?
Using Access 2010 Win 7
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
'Cancel = Me.[Page] = 2
Cancel = Me.Page > 1
End Sub
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
'Cancel = Me.[Page] = 2
Cancel = Me.Page > 1
End Sub
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
'Cancel = Me.[Page] = 2
Cancel = Me.Page > 1
End Sub
If I use either of the two different codes above, Cancel = Me.page = 2 or Cancel = Me.page>1 I still get a second page, but it is blank. Since I am sending the pdf version of the report (it is an invoice), it shows as there being two pages.
Any suggestions?
Using Access 2010 Win 7