mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
19 lines
539 B
C++
19 lines
539 B
C++
#include <Report/Report.h>
|
|
|
|
using namespace Upp;
|
|
|
|
void DrawWatermark(Report *report)
|
|
{ // Draw something to the background
|
|
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 << "{{1:1:1@N Report:: with:: Watermark}}"; // Need to use @N to make table background transparent
|
|
report << "Report with Watermark";
|
|
}
|
|
Perform(report);
|
|
}
|