Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Watermark
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01240837
Message ID:
01241720
Views:
26
Ok, I knew Bo was working on this and I thought Craig Boyd was too, but I didn't know who else, if anyone, was working on it.

I got it working just fine except for one issue. If I print a multipage report (actually I only tested on a two page report), the watermark on the first page comes out without the opacity set properly (I have it set to 30%). The second page comes out with 30% opacity, like it should. I reported that to Bo. It would be nice to have it fixed, however the other solution is simply to apply the opacity to the image file instead of doing it via a software setting at runtime. This is less flexible, since you can't just change the opacity on the fly, but it will work.

Where is that new version, anyway?

Thanks,

Russell

>Russel,
>
>>Use the GDIPlusX library, there is a sample in the download:
>>http://www.codeplex.com/VFPX/Release/ProjectReleases.aspx?ReleaseId=1711
>>
>>Look at: samples\report_logowatermark_cool.prg
>
>The WaterMarkListener that I suggested is based on that sample, and provides the possibility to set some other properties. When I created that sample, I was just thinking on creating a sample, so I suggest you to work with the new one.
>
>
>
>
>>>>It appears that watermarks are not real simple in the VFP report writer, even in 9. If I put one in the page header, it makes the page header become quite large (larger than it needs to be for the data, but large enough for the watermark). In other words, the watermark is not spanning bands. I'd just like a one or two word watermark placed diagonally an spanning most of the page from lower left to upper right. Perhaps there's a trick I've not discovered. Any suggestions?
>>>
>>>Cathy Pountney shows how to create watermark in What's New in the Visual FoxPro 9.0 Report Writer
>>
>>Thanks, Sergey and Naomi and Cesar. As far as I can tell, placing the watermark as suggested in Cathy's article does not work as advertised. I tried various settings, but it caused the page header band to expand beyond the required height.
>>
>>I ended up using a suggestion from Bo Durban which prints the watermark correctly and lets me control opacity.
>>
>>From Bo:
>>
>>Use the GDIPlusX library, there is a sample in the download:
>>http://www.codeplex.com/VFPX/Release/ProjectReleases.aspx?ReleaseId=1711
>>
>>Look at: samples\report_logowatermark_cool.prg
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform