Drawing directly on an area of the report
I have some code defined like this:
procedure DrawTheStuff(Canvas: TCanvas; R: TRect);
begin
Canvas.MoveTo(R.Left, R.Top);
Canvas.LineTo(R.Right, R.Bottom);
end;
(That's not the actual code - the actual code is a *lot* more complex, but
this serves to illustrate my point.
I want to put something on my report where I can then call DrawTheStuff to
output the graphics commands to the report. How do I do that with
ReportBuilder?
-Eric Harmon
procedure DrawTheStuff(Canvas: TCanvas; R: TRect);
begin
Canvas.MoveTo(R.Left, R.Top);
Canvas.LineTo(R.Right, R.Bottom);
end;
(That's not the actual code - the actual code is a *lot* more complex, but
this serves to illustrate my point.
I want to put something on my report where I can then call DrawTheStuff to
output the graphics commands to the report. How do I do that with
ReportBuilder?
-Eric Harmon
This discussion has been closed.
Comments
You can download an example from:
http://www.digital-metaphors.com/tips/CustomDrawCommand.zip
Cheers,
-
--
Tom Ollar
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
If the Drawcommand example is not quite what you want then you could do what
I did... That is draw on a temporary metacanvas, then load this into an
Tppimage control in the beforeprint event of the report.
Sarah