Hi,
I need to show some information at the very bottom of the last page on a report...
If you want something on a report to appear at the bottom of the page you have to use the page footer because using the report footer just places it at the end of the last detail on the report which could be half way up the page.
Now... If you want this page footer to print on the last page only, you can use the following code...
This works fine when in print preview but when I print the report it the page footer is on every page.
I have copied the code into the PageFooterSection_Print section but it still prints on every page.
Does anyone know how to make this work.
Thanks in advance,
Neil.
I need to show some information at the very bottom of the last page on a report...
If you want something on a report to appear at the bottom of the page you have to use the page footer because using the report footer just places it at the end of the last detail on the report which could be half way up the page.
Now... If you want this page footer to print on the last page only, you can use the following code...
Code:
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
If Me.Page = Me.Pages Then
[green]'hide all the controls here[/green]
Me.txtBox.Visible = False
[green]'etc etc[/green]
End If
End Sub
This works fine when in print preview but when I print the report it the page footer is on every page.
I have copied the code into the PageFooterSection_Print section but it still prints on every page.
Does anyone know how to make this work.
Thanks in advance,
Neil.