August 19, 2004

Watermark and Crystal Report

It was said adding watermark to Crystal report is piece of cake, at least
from a few online discussion threads . But maybe I am just too new to this
field, it took me some hours to add a "CONFIDENTIAL" watermark to a report.

At first I added a new section above detail section, but because height of
detail fields vary, there maybe too many "CONFIDENTIAL" remark on the
paper. Then I add it to the page header and it was fine.

Below is the formula to display "CONFIDENTIAL" as a slope,

local stringvar sString := "CONFIDENTIAL ";
local numbervar nLength := length(sString);
local stringvar sResult;

do
(
sResult := sResult & space((nLength-1)*2) & sString[nLength] & chr(13);
nLength := nLength - 1;
)
while nLength <> 0;

sResult;


No comments: