J
Jean-Paul
Hi,
When I write:
DoCmd.OpenReport "Voorbereidend_document_beeldvorming_GASV",acViewPreview
I get a perfect report with 2 header lines
Then I click the print button and everything is nicely printed.
When I write
DoCmd.OpenReport "Voorbereidend_document_beeldvorming_GASV"
I get a printout without the 2 lines in the header
These lines are generated as follow
Private Sub Report_Activate()
If Forms!hoofdmenu!Te_printen = "Doc1" Then
Me!Titel1 = "VOORBEREIDEND DOCUMENT BEELDVORMING Datum: " &
Format(Date, "d mmm yyyy")
Else
Me!Titel1 = "VOORBEREIDEND DOCUMENT KLASSENRAAD Datum: " &
Format(Date, "d mmm yyyy")
End If
Me!Titel2 = "LEERKRACHT: " & Forms!hoofdmenu!Gebruiker & " VAK: " &
Forms!hoofdmenu!watgeefik & " NIV: " & Forms!Leerlingen!Niveau
End Sub
What to do?
Thanks
When I write:
DoCmd.OpenReport "Voorbereidend_document_beeldvorming_GASV",acViewPreview
I get a perfect report with 2 header lines
Then I click the print button and everything is nicely printed.
When I write
DoCmd.OpenReport "Voorbereidend_document_beeldvorming_GASV"
I get a printout without the 2 lines in the header
These lines are generated as follow
Private Sub Report_Activate()
If Forms!hoofdmenu!Te_printen = "Doc1" Then
Me!Titel1 = "VOORBEREIDEND DOCUMENT BEELDVORMING Datum: " &
Format(Date, "d mmm yyyy")
Else
Me!Titel1 = "VOORBEREIDEND DOCUMENT KLASSENRAAD Datum: " &
Format(Date, "d mmm yyyy")
End If
Me!Titel2 = "LEERKRACHT: " & Forms!hoofdmenu!Gebruiker & " VAK: " &
Forms!hoofdmenu!watgeefik & " NIV: " & Forms!Leerlingen!Niveau
End Sub
What to do?
Thanks