Adding a Watermark

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GFegan
    New Member
    • Aug 2010
    • 1

    Adding a Watermark

    I have a form that has a drop down box which has a list of different reports created in access.

    On the form i need to add a tick box, which allows the user the option to print a watermark on the report they decide to open.

    I have created a bitmap image for my watermark.

    Anyone any ideas of the code i would use within the form and the reports to add the watermark when the option has been ticked?
  • evildracko
    New Member
    • Jul 2010
    • 14

    #2
    first make the image a gif with trabsparent background...

    then in front of said form, add a imagebox preferabbly called image frame

    and set the value of picture to none

    in the code try
    Code:
    Private Sub Detail_Format
    Dim strImagePath As String 
    
    if (Watermarked condition) then
            strImagePath = <Path for image>
            Me.ImageFrame.Picture = strImagePath 
    end if
    hopee this works

    Comment

    • ADezii
      Recognized Expert Expert
      • Apr 2006
      • 8834

      #3
      You can Embed the Bitmap Image on the Report then set its Visible Property to False. Place code in the Open() Event ot the Report which then checks the State of your Check Box on the Form, then sets the Visibility of the Image accordingly, as in:
      Code:
      Private Sub Report_Open(Cancel As Integer)
        Me![Image18].Visible = Forms!Form1![chkWaterMark]
      End Sub

      Comment

      Working...