ultimatepp/reference/Watermark/main.cpp
cxl 6afde3e8e1 reference: Report with Watermark example
git-svn-id: svn://ultimatepp.org/upp/trunk@7408 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-06-02 14:35:52 +00:00

18 lines
426 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 << "Report with watermark";
Perform(report);
}