Contents
- Index
- Previous
- Next
BeginPrint method
Applies to
TProfGrid component
Declaration
function BeginPrint: Integer;
Description
Starts a print job and prints the grid without finishing the print job.
The method is provided for sequential printing of two or more grids on the same print page.
On success, the return value of the method must be passed to a subsequent call of ContinuePrint or EndPrint method.
The return value of -1 indicates an error.
Example
The following code prints three grids on the same print page.
procedure TForm1.Button1Click(Sender: TObject);
var
I: Integer;
begin
I := ProfGrid1.BeginPrint;
I := ProfGrid2.ContinuePrint(I, 1/20);
ProfGrid3.EndPrint(I, 1/20);
end;