472,353 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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?
Aug 11 '10 #1
2 7233
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
Expand|Select|Wrap|Line Numbers
  2. Private Sub Detail_Format
  3. Dim strImagePath As String 
  5. if (Watermarked condition) then
  6.         strImagePath = <Path for image>
  7.         Me.ImageFrame.Picture = strImagePath 
  8. end if
hopee this works
Aug 13 '10 #2
8,832 Expert 8TB
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:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Report_Open(Cancel As Integer)
  2.   Me![Image18].Visible = Forms!Form1![chkWaterMark]
  3. End Sub
Aug 13 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Erik Hendrix | last post by:
Hi, I have some questions related to stripe sets that I'm hoping someone here can answer. 1) What happens to stripe sets when doing a database...
by: m3ckon | last post by:
I have a requirement for a new website to create an image based web site. The site needs to have an administration area where admin can upload...
by: Prashant | last post by:
Hi, I want to add image to printer. So that while printing print will come come along with stamp image. I am doing printing by creating dc. I am...
by: Cindy H | last post by:
Hi I'm would like to use a watermark for a background on my web pages. I used the style builder in Visual Studio.Net to add this as a background....
by: Chuck Anderson | last post by:
Is it possible to overlay a transparent watermark on an image - dynamically? I'd like the result to look like this example:...
by: =?Utf-8?B?S2Vycnk=?= | last post by:
Hi all -- I am a long-time C programmer and "medium-time" C++ programmer, but am brand new to C#. I am creating a simple app using C# and I need...
by: rfr | last post by:
Apparently the Transitional Doctype kills this script because the script does not make proper use of units like "px". It works well without a...
by: SAM | last post by:
rfr a écrit : This below works for me in Firefox, you can put this script in the head of your page(s) <script language="JavaScript1.2"...
by: sueb | last post by:
I have a document with a watermark. In Word 2003, this watermark doesn't print but is only displayed (which is exactly what I want). However, in...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.