Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printing a watermark or a faint background in a report

371 views
Skip to first unread message

Bjarni Sigurdsson

unread,
May 14, 2002, 7:46:19 AM5/14/02
to
Hi all,
Can anybody tell me if it is possible to print a watermark in a report, also
if not possible how to print a report through word and set up the watermark
picture
Thanks
Bjarni Sigurdsson


DP

unread,
May 14, 2002, 7:18:57 PM5/14/02
to
You could print a very faint immage in any band (probably preferably the
footer or header.
Send the "watermark" object to back - by selecting that item from the menu
and then make sure all objects in front of the watermark are set to
"transparent" - Think that should give you the desired effect
"Bjarni Sigurdsson" <bs...@simnet.is> wrote in message
news:eu2lKV0#BHA.1916@tkmsftngp04...

Brandon H.

unread,
May 15, 2002, 10:53:18 AM5/15/02
to
This is from Cathy Pountney's session on report writer tips and tricks from
Essential Fox.
For this trick alone you should buy her book "The Visual FoxPro Report
Writer: Pushing it to the Limits and Beyond"
You can buy it at
www.hentzenwerke.com

Plug being made, this is her tip:

Before you go any further, make copies of the FRX and FRT files. When
hacking, always play it safe in case you screw things up so bad that the
native FoxPro tool doesn't recognize it anymore.Once you have your copies
made, open up the table as follows:

USE MyReport.frx
BROWSE

The only record you need to worry about right now is the one for
the BMP that you added to the report. It will have an OBJTYPE of 17 and the
PICTURE field will contain the name of the BMP.
Once you've found the right record look at the VPOS, HPOS, HEIGHT
and WIDTH fields. If you want to fine-tune the upper-left position of the
image, you can do it by adjusting the VPOS and HPOS fields. The VPOS field
represents the vertical starting position and the HPOS field represents the
horizontal position. The unit of measure used is 1/10,000 of an inch. So to
place the image ½" from the top of the page and 1" over from the left
margin, use 5,000 for the VPOS and 10,000 for the HPOS.
To adjust the size of the image, change the HEIGHT and WIDTH
fields. Remember, the unit of measure is 1/10,000 of an inch. So to stretch
the image to a height of 9" and a width of 6-1/2", change the HEIGHT and
WIDTH fields to 90,000 and 65,000 respectively. Now close the table and run
your report. The image will be stretched across the entire page.
Two things are worth noting with this technique. First, the
"Front-to-back" order of the fields and images on the report is important.
If you place the image on the report after you've placed other fields on the
report, the image will appear on top of the fields. This probably isn't what
you're looking for. Select the image and choose the "Send to Back" option.
This will place the image behind all your other fields. The other thing
worth noting is that if you change something related to the image, such as
the front-to-back order, the hacked size of your image may be reverted back
to a size that FoxPro considers within it's acceptable range. So you'll have
to hack the size again.


Brandon H.

"DP" <d...@none.com> wrote in message news:abs5ud$bsd$0...@dosa.alt.net...

Roger Ansell

unread,
May 15, 2002, 12:47:14 PM5/15/02
to
As much as I like VFP, its native report writer
is minimalist. Sure, you can hack the frx in code -
but watch out if you're in a multi-user environment.

Anyway, hacking the frx is ... well .... kludgy, isn't it?

Do yourself (and your customers) a favour and use
Crystal Reports 8.5 Pro for your VFP reporting.
You can distribute the CR runtimes royalty-free (as
long as you don't include any report creation
functionality).

2 years ago, I looked at the VFP report writer and
compared it with CR.
I haven't used the VFP report writer since.

And watermarks are _easy in CR.

Roger

--
Roger Ansell
FE AVP&Cie
Adelaide, Australia

"Bjarni Sigurdsson" <bs...@simnet.is> wrote in message
news:eu2lKV0#BHA.1916@tkmsftngp04...

0 new messages