Correlation between Delphi and RAP
Hi,
I'm editing a report through RAP rather than through Delphi.
When I search the web I find various "How To"s written for Delphi, such
as the following
(http://www.digital-metaphors.com:8080/Delphi_Code/Calculations/How_To...Show_a_Total_in_the_Last_Detail).
I'd like to reimplement this in RAP, but I don't really understand the
relationship between the Delphi code and what I'm seeing in Report
Builder. Specifically, the object "ppReport1" does not exist.
Can someone please explain this to me or point me at a good resource?
Thanks in advance,
David
I'm editing a report through RAP rather than through Delphi.
When I search the web I find various "How To"s written for Delphi, such
as the following
(http://www.digital-metaphors.com:8080/Delphi_Code/Calculations/How_To...Show_a_Total_in_the_Last_Detail).
I'd like to reimplement this in RAP, but I don't really understand the
relationship between the Delphi code and what I'm seeing in Report
Builder. Specifically, the object "ppReport1" does not exist.
Can someone please explain this to me or point me at a good resource?
Thanks in advance,
David
This discussion has been closed.
Comments
RAP is a stand alone Pascal compiler that in some cases will work very
closely with Delphi. My first suggestion would be to work through the RAP
tutorials in the ReportBuilder Developer's Guide. Then take a look at the
RAP demos installed with ReportBuilder. There is also a Learning to RAP
application that is very helpful as well and can be downloaded from our
site.
To answer your question, you can simply use "Report" when accessing the main
report in RAP. Take a look at the object tree at the top left for all
object names to be used.
Helpful articles...
http://www.digital-metaphors.com/rbWiki/General/Installation/Tech_Tip:_Demo_Location
http://www.digital-metaphors.com/rbWiki/RAP/Fundamentals/Overview
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I have worked through all the tutorials and explored all the demos.
The specific problem I have is that the Delphi demo makes reference to
"Report.Engine.PrintPosRect.Top" but RAP throws an error "Expected: '('
or '[', but found 'PrintPosRect' instead".
What am I missing? I've been using Delphi to explore the RB objects, but
I'm not always sure how to convert my Delphi code to RAP code.
Not all ReportBuilder properties are available in RAP. If you need to
access a property that is not available such as the PrintPosRect property,
you will either need to create a pass-thru function or extend the RAP RTTI.
Both are explained in the Developer's Guide and there are examples of
Pass-Thru function in the RAP demos.
http://www.digital-metaphors.com/rbWiki/RAP/Extending_RAP/Overview
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com