nicocizik
Comments
-
Hi Jeroen,
Which event did you end up using to make changes to the TextFileName (i.e.
which RAP event is firing twice?).
Regards,
Nico Cizik
Digital Metaphors
in Passthru functions are called multiple times Comment by nicocizik January 2011 -
Hi Mark,
The DSExclude call removes the pppcEmpty enumerated type from the design
state of the code module. This is necessary if this is the first procedure
created in RAP. In your case, since the procedure is already create… -
Hi Mark,
1. Very similar to creating a global var. I posted this example to the
RBWiki article as well.
procedure TForm1.CreateRAPCode;
var
lCodeModule: TraCodeModule;
lGlobalCreateProgram: TraProgram;… -
Hi Bora,
If you are using a TppDBImage you could send that TPicture as the data.
Or an easier route would be to simply send no parameter, and access
the datapipeline directly from the pass-thru function. This way you
… -
Hi Bora,
I believe this will need to be done in the pass thru as well. If you
are simply altering the TPicture, why do you need to return anything?
If you send a reference to the TPicture property of a TppImage
componen… -
Hi David,
You are correct, RAP is not going to be able to resolve the
TRoundToEXRangeExtended type. Perhaps try using a simpler type (String
or Integer) and convert to the TRoundToEXRangeExtended type inside the
Execute… -
Hi Jeroen,
Are you able to see the image correctly if you use Delphi instead of
RAP? What happens if you simply load the image into a TppImage
component manually? If you would like, you can send me the image you
are tr… -
Hi Jon,
The Query Designer is simply a tool for creating a SQL statement that is
sent directly to the DB. If you use a built-in Oracle function inside
the Calculated fields tab, it should work as designed when executing the <… -
Hi Jon,
For RB 12 we added support for the use of parameters inside a calculated
field. You should be able to do something like the following.
EffectiveDate being a valid report parameter.
Note that it is not possi… -
Hi Diana,
Thanks for the feedback. I will add this as a possible enhancement for
a later release.
Another option as a work-around would be to calculate the Days Between
value manually in RAP. TDateTime values are … -
Hi Diana,
I believe Delphi has a DaysBetween routine that takes two TDateTime
parameters and returns an integer value built-in. Though this routine
is not available in RAP, it would be easy to create a pass-thru function
Hi Mark,
In RAP, when coding for a subreport, the Report object refers to the
TppChildReport that represents the subreport. If you would like to
access the main report use the Report.MainReport property.
Rega…Hi Lawrence,
The Top property represents the position inside the band or region the
subreport resides. You need to be sure you assign this property before
the subreport is printed. Try using the Band.BeforePrint event as a <…Hi Jon,
Toggling the Pipeline.SkipWhenNoRecords property for the detail dataset
should give you the effect you are after. When this property is True
(default), all master records that do not have details will be skipped.
Hi Mika,
The VarIsNull routine is not natively available in RAP. The easiest
option would be to use this in your existing pass-thru function.
Otherwise you could create a new pass-thru function providing VarIsNull
funct…Hi Branden,
Each child report also contains its own code module. Try performing a
report object loop to discover any subreports in the main report and
send its TppSubreport.Report property into the raGetCodeModule routine.Take a look at the following article.
http://www.digital-metaphors.com/rbWiki/RAP/Fundamentals/How_To...Modify_RAP_Prog…Hi Robert,
Generally for formatting solutions like this one you could simply use
the DisplayFormat property of the DBText/DBCalc component. If you right
click over the component and select "Display Format" you will be given a…Hi Terje,
Access to the canvas of an image is not built-in to RAP. You would need
to create a passthru function to do so.
Another option is to use the TppPaintBox component to draw directly to
the report canvas. T…Hi Nigel,
This is correct. In order for the report to know how many pages it has
before printing, it needs to be a two pass report. If you set the
Report.PassSetting to psTwoPass, you should get the correct values.
Hi Nick,
Unfortunately none of the Viewer routines are currently exposed to RAP.
You will need to create a pass through function that makes a call
similar to the one below...
TppViewer(Report.PreviewForm.Viewer).F…Hi Al,
Try performing a report object loop to find specific components in your
report. See the following article as well as the sample RAP code below.
in Finding an object by Name Comment by nicocizik October 2011Hi Steve,
If a class has been registered with Delphi using the RegisterClass
procedure, it should be recognized by RAP (along with all published
properties).
It is possible to extend this support by using Object RTT…Hi Terje,
I apologize, Benjamin is correct. Rather than using the PrintCount
property you need to use the BandsPerRecord property. This defines how
many copies of the detail band will print for each record of the report.
Hi Terje,
Rather than trying to adjust the printed copies, try adjusting the
DetailBand.PrintCount property instead. This will print each record the
number of times assigned.
Hi John,
ReportBuilder does not currently support multi-line rotated text. This
is a feature that we may research and add for a later release of the
product. Currently you will need to use multiple components as you have
Hi Jaime,
Take a look at the following article on how to create RAP programs in code.
http://www.digital-meta…Hi Paolo,
Yes, if you are using DADE, you can alter the query using the
TppSQLBuilder class. This class gives you a number of useful routines
to easily manipulate the SQL object. See the TppSQLBuilder topic in the
RBui…Place a variable on a two pass report set to calculate on Traversal.
Add a ShowMessage command to the OnCalc event of the variable. The
message will display twice for each record (once during the first pass,
once during the second…