Examples: Report_GetPageRemaining()


This example adds a band that is 24 points tall to the current report. The Report_GetPageRemaining() function is used to verify that enough space remains on the page for the band. If there is not enough space, a new page is started.

local boolean result;

if Report_GetPageRemaining() < 24 then
	{There is not enough space to print the band. Start a new page.}
	set result to Report_NewPage();
end if;
result = Report_NewBand(24);
result = Report_WriteText(0, 0, 250, 24, LEFT, "Total Sales");


Documentation Feedback