Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Water Mark on Reports

Status
Not open for further replies.

benasumwa

Programmer
Oct 14, 2003
57
KE

Hi Friends,


I have searched the site for any reference to
Water Marks on VFP reports but do not seem to
make any headway. Is it a feature that can be
incorporated on reports, so that for Invoice
reprints I could have COPY on the FRX?

Any Ideas?

Time is the father of truth. Time will tell.
---------------------------
Benson O. A. (Infinity Link Limited)
 
Not sure if this is what you're looking for, but I did a quick test of adding a picture to the detail band of a new report and then putting fields and labels on top of it. It worked in that by specifying fixed positioning, the picture does not move when I move the fields around. You could create a graphic of the watermark you want to use, and use a PRINT WHEN to print the watermark only when you want it.

I use VFP 9 but I think it's the same in VFP 8.

Mike Krausnick
Dublin, California
 
I have used a scanned graphic file (In my case a pre-printed form) and sent the graphic to the back and then filled in the blocks with text from my database fields.

You could rite two reports, one with the original,and the second with the graphic "COPY" changed to "light gray" with adobe, position it where you want, put it behind the text, and run the two reports to print in sequence.
wjwjr
 

Jim,

After posting this thread I did some search on the internet
and got the mind's eye stuff. I think it's great. I downloaded for evaluation and see whether I can purchase
it's license. But thanks nonetheless.

wjwjr/Mike

I think your suggestions are worth trying before I think
of purchasing a third party tool.

Thanks all.

Time is the father of truth. Time will tell.
---------------------------
Benson O. A. (Infinity Link Limited)
 
A comment on wjw's post: You wouldn't need two separate reports. One report with the a 'Print When' condition specified would suffice. For example, a watermark graphic with a Print When condition of
Code:
glCopy
with a public variable glCopy set to .F. would print the report without the watermark, then changing the value of glCopy to .T. would print the report with the watermark.

Mike Krausnick
Dublin, California
 
Better yet create a form Property and initialize it with either true or false depending on if it goes to the printer or the preview.

Form properties are public during use and are discareded when the form is destroyed.

You can refrence them on a report PRINT WHEN with :
if thisform.glCopy = .t.

Thanks to Marcia Atkins for this idea. Public variables are bad, form properties are good.



Don Higgins
 
You do not need to buy additional software to print watermarks. Visual FoxPro 9.0 has that capability built into the report writer. Actually, 9.0 introduced many additional enhancements to the report writer, that alone was worth the upgrade! See my search and success in thread1252-918789 describing watermarks and absolute positioning in reports.

VFP 9.0 made it so simple! Actually, only the beta version was available when we had to get the project completed, so for a few months the beta was used for those reports until 9.0 was released.

dbMark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top