A kind of watermark

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

I am using Access 97.

I am tring to print some text on a Report and am able to do it with the
following code. I need to figure out how to set the text I am printing
to be transparent so it is like a watermark with the other text on the
report printed over the top so it is readable.

Thanks in advance for your help
Ron


Dim rpt As Report
Dim strMessage As String

Private Sub Report_Page()

Dim rpt As Report
Dim strMessage As String

Set rpt = Me
strMessage = "Not For" & vbCr & "Release"
With Me
'Set scale to inches, and set properties.
.ScaleMode = 5
.FontName = "Arial Black"
.FontSize = 100
.ForeColor = 16776960 'vbCyan

End With
Me.CurrentX = 0.75
Me.CurrentY = 2.5 '4.25

rpt.Print strMessage

End Sub
--
 
I'm not sure you will have much luck with this method. Have you considered
creating an image file and then setting the report's picture property at
run-time?
 
Have you tried using a label or text box control. Set the back style to
transparent. Select the control then on the menu Format > send to back.

This has works in my databases.

Hope this helps ...
 
Back
Top