mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@7412 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f806af8c37
commit
50fdaa4d09
1 changed files with 4 additions and 3 deletions
|
|
@ -7,12 +7,13 @@ void DrawWatermark(Report *report)
|
|||
report->DrawText(1000, 1000, 3000, "Watermark", Serif(1000), WhiteGray());
|
||||
}
|
||||
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
Report report;
|
||||
report.OnPage(callback1(DrawWatermark, &report)); // called after new page is created
|
||||
for(int i = 0; i < 100; i++)
|
||||
report << "Report with watermark";
|
||||
for(int i = 0; i < 100; i++) {
|
||||
report << "{{1:1:1@n Report:: with:: Watermark}}"; // Need to use @n to make table background transparent
|
||||
report << "Report with Watermark";
|
||||
}
|
||||
Perform(report);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue