<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>RAP — ReportBuilder Support Forums</title>
        <link>https://www.digital-metaphors.com/FORUMS/</link>
        <pubDate>Thu, 21 May 2026 20:26:40 +0000</pubDate>
        <language>en</language>
            <description>RAP — ReportBuilder Support Forums</description>
    <atom:link href="https://www.digital-metaphors.com/FORUMS/categories/rap/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Pre-version 19 RAP code decode possible ?</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21519/pre-version-19-rap-code-decode-possible</link>
        <pubDate>Fri, 11 Jun 2021 18:12:31 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>mcarey101</dc:creator>
        <guid isPermaLink="false">21519@/FORUMS/discussions</guid>
        <description><![CDATA[How can i decode the rap code, when i save to an RTM file,  of a report built pre-version 19 ?   What encoding is used on the RAP code ?  ]]>
        </description>
    </item>
    <item>
        <title>Disable OnDrawCommandClick while report is generating/calculating</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/22023/disable-ondrawcommandclick-while-report-is-generating-calculating</link>
        <pubDate>Wed, 30 Jul 2025 19:26:26 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>frontline</dc:creator>
        <guid isPermaLink="false">22023@/FORUMS/discussions</guid>
        <description><![CDATA[The title pretty much sums it up. Lately we are moving the bulk of our project under a single TFDConnection object. 

We have OnDrawCommand click events that fire off some queries and it's stepping on the Report generation (UseBackgroundThread=True). Is there a boolean or some other way we can disable OnDrawCommandClicks until the report is completely done? Obviously we'd like to keep the multi threaded aspect of it if possible. ]]>
        </description>
    </item>
    <item>
        <title>Error in report event code</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/22007/error-in-report-event-code</link>
        <pubDate>Tue, 27 May 2025 13:20:53 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>MariusCere</dc:creator>
        <guid isPermaLink="false">22007@/FORUMS/discussions</guid>
        <description><![CDATA[I'm using Delphi XE 10.2 with Report Builder version 22.04.

Sometimes, when I'm developing a report, I get an access violation in one of the report events where I've put code. Apart from putting messages in each of the report events, is there a quicker way of finding out in which event the error occurs?

]]>
        </description>
    </item>
    <item>
        <title>RAP invalid dbfield names should give an error</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21943/rap-invalid-dbfield-names-should-give-an-error</link>
        <pubDate>Fri, 18 Oct 2024 13:47:54 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>lawrencek</dc:creator>
        <guid isPermaLink="false">21943@/FORUMS/discussions</guid>
        <description><![CDATA[Referencing fields as pipelinename['fieldname'] should give a error if the field or pipe does not exist. This is important if the dataset SQL is changed.

Can there perhaps be a property on the report to set strict?

Lawrence  ]]>
        </description>
    </item>
    <item>
        <title>Access RAP events code in Delphi as text</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21944/access-rap-events-code-in-delphi-as-text</link>
        <pubDate>Wed, 23 Oct 2024 21:27:12 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>lawrencek</dc:creator>
        <guid isPermaLink="false">21944@/FORUMS/discussions</guid>
        <description><![CDATA[If I want to find values in RB I can iterate through the objects and get their property values. Nice.

But can I iterate through the events, or just the events for a band, and retrieve in delphi the RAP pascal as text? Or even just retrieve the code for particular event. I want to parse the source code and pick up references to pipes and fields. Currently I have to use the saved report as text or do an obj2text  and then parse the text.

Even better, can I just retrieve the access to pipename['field'] statements?

Lawrence ]]>
        </description>
    </item>
    <item>
        <title>Calculation</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21931/calculation</link>
        <pubDate>Tue, 03 Sep 2024 09:04:43 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>Felixinasa</dc:creator>
        <guid isPermaLink="false">21931@/FORUMS/discussions</guid>
        <description><![CDATA[Hi,
I have a report with a global variable.
In a subreport, I increment this variable. On the StartPage event, if page = 1, I initialize this variable to 0.
If the report has more than one page and I print more than one copy, there is no problem. The problem happens when I print more than one copy of only the last page.
How can I initialize the variable for every copy?]]>
        </description>
    </item>
    <item>
        <title>Field SQL Alias in Field select dropdown</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21914/field-sql-alias-in-field-select-dropdown</link>
        <pubDate>Mon, 01 Jul 2024 17:07:03 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>adyble</dc:creator>
        <guid isPermaLink="false">21914@/FORUMS/discussions</guid>
        <description><![CDATA[Hello
Would it be possible to have Field SQL Alias in Field select dropdown instead of the fieldname ? There are so many ambiguous names that our staff are having difficultly knowing which is which. Sometimes there are 3 tables in a join with the same field name. The fieldname SQL alias is listed when adding to the report, so that's handy.]]>
        </description>
    </item>
    <item>
        <title>Print subreport multiple times from RAP</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21879/print-subreport-multiple-times-from-rap</link>
        <pubDate>Tue, 26 Mar 2024 12:47:29 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>lawrencek</dc:creator>
        <guid isPermaLink="false">21879@/FORUMS/discussions</guid>
        <description><![CDATA[I want to print a sub report multiple times. 
I currently have a dataset and pipeline with the correct number of records, but I would like to do it from RAP. Or is there a property of the sub report like  repeat count. Or do I call a procedure from the parent band?

Lawrence]]>
        </description>
    </item>
    <item>
        <title>Call my own function/procedure from RAP</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21880/call-my-own-function-procedure-from-rap</link>
        <pubDate>Tue, 26 Mar 2024 12:51:08 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>lawrencek</dc:creator>
        <guid isPermaLink="false">21880@/FORUMS/discussions</guid>
        <description><![CDATA[How do I call my own procedure from RAP? I suppose that would be extending the "language"?

Lawrence]]>
        </description>
    </item>
    <item>
        <title>Raise an exception</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21872/raise-an-exception</link>
        <pubDate>Thu, 14 Mar 2024 09:00:51 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>Felixinasa</dc:creator>
        <guid isPermaLink="false">21872@/FORUMS/discussions</guid>
        <description><![CDATA[Hello

It's posible to raise en exception from a report?

Thank you]]>
        </description>
    </item>
    <item>
        <title>Groups Totals in red when negative</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21854/groups-totals-in-red-when-negative</link>
        <pubDate>Sun, 21 Jan 2024 17:07:11 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>jsanchez</dc:creator>
        <guid isPermaLink="false">21854@/FORUMS/discussions</guid>
        <description><![CDATA[Pretty much what the title says. I have a report with 3 groups (0, 1, 2) . On the header of each group I have DBCalc fields that sums up the values of each subgroup and i need their font color red when negatives. I've tried with the following two codes on the DBCalc "OnCalc" events but have not been succesful.

```
procedure DBCalc40OnCalc;
begin
  if VENTAS['UTOTAL'] &lt; 0 then
    DBCalc40.font.color := clRed
  else
    DBCalc40.font.color := clBlack;
end;
```
and also tried this:

```
procedure DBCalc40OnCalc;
begin
  if DBCalc.40.value &lt; 0 then
    DBCalc40.font.color := clRed
  else
    DBCalc40.font.color := clBlack;
end;
```
Thanks in advance.]]>
        </description>
    </item>
    <item>
        <title>Evaluate an expression in a string</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21853/evaluate-an-expression-in-a-string</link>
        <pubDate>Fri, 19 Jan 2024 15:03:15 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>NatSam</dc:creator>
        <guid isPermaLink="false">21853@/FORUMS/discussions</guid>
        <description><![CDATA[In RAP, is there any way to obtain the result of an expression stored in a text field?

For example, in the CALC_ITEM field I have the formula:

PRC - VLR_1 + VLR_2

The PRC, VLR_1 and VLR_2 are fields from another table and I need to obtain the result of the formula above (which changes depending on the customer's classification).

Is there an expression evaluator that can be used directly in RAP and that recognizes the values of the fields (or variables that would be initialized with the values stored in the fields)?]]>
        </description>
    </item>
    <item>
        <title>Store RAP code in old format?</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21821/store-rap-code-in-old-format</link>
        <pubDate>Tue, 10 Oct 2023 13:42:36 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>ribeka</dc:creator>
        <guid isPermaLink="false">21821@/FORUMS/discussions</guid>
        <description><![CDATA[We have an application in an "old version" (compiled with Delphi2009) and a "new version" (compiled with Delphi XE11.3). Both use ReportBuilder, the "old one" version 15.05, the "new one" uses the most recent ReportBuilder version. For certain reasons we must support both application versions parallelly for some time (up to 2 years), after that the old version will not be supported any longer. Both versions use the same data pipelines, so reports created with the old version can be used without modifications by the new version. But reports created with the new version (if they contain RAP code) cannot be used by the old version, as the RAP code now is stored in plain text. 

Which leads to my question: Is it possible to store reports which are created/modified with the new version (and contain RAP code) in the "old manner"?]]>
        </description>
    </item>
    <item>
        <title>modify PDFSettings.PDFAFormat</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21786/modify-pdfsettings-pdfaformat</link>
        <pubDate>Tue, 20 Jun 2023 13:35:31 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>mtlmarko89</dc:creator>
        <guid isPermaLink="false">21786@/FORUMS/discussions</guid>
        <description><![CDATA[Hello,

could you tell me how to modify PDFSettings.PDFAFormat in RAP?

I keep getting the error that "pafPDFA3" is either undefined or an incompatible type when I specify it as a string.

This is how I'm currently trying to do it:
Report.PDFSettings.PDFAFormat := pafPDFA3;

How do you correctly specify the values for PDFAFormat?

Thank you!
mtlmarko89]]>
        </description>
    </item>
    <item>
        <title>Distinct Count Function</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21771/distinct-count-function</link>
        <pubDate>Wed, 26 Apr 2023 15:53:15 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>KenRandall</dc:creator>
        <guid isPermaLink="false">21771@/FORUMS/discussions</guid>
        <description><![CDATA[Hi,

How can I include a distinctcount function in rap?

Thanks,

Ken]]>
        </description>
    </item>
    <item>
        <title>Convert/Migrate old RB v9 (.BRT) reports to RB v21 (.RTM)</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21755/convert-migrate-old-rb-v9-brt-reports-to-rb-v21-rtm</link>
        <pubDate>Mon, 13 Mar 2023 21:01:23 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>DTWaling</dc:creator>
        <guid isPermaLink="false">21755@/FORUMS/discussions</guid>
        <description><![CDATA[We have been in the process of migrating our old Delphi code to the current version of Delphi.  Our app fully integrates the ReportBuilder and includes several pre-made "standard" report templates.  I have tried a couple different approaches:

1.  I have attempted the steps noted in the readme/release notes - change file extension to RTM and then, from within the designer, open from file.  This appears to open the file without error, <i>but</i> also without importing anything from the old template.

2.  I have attempted opening from data stream (via the previously imported report templates stored in the DB), and in this case we do get the design elements to show, but none of the configured data sources or procedures are brought in.

In approach #2 I do get an error: "Class TdaIBXQueryDataView not found..."
This is not unexpected since many of the old IBX components in Delphi are migrated to new components, so likewise there are corresponding changes in RB  -  so my assuption is that TdaIBXQueryDataView is fully replaced by TdaQueryDataView?

Following this conclusion, I could use a text editor of other tool to do a find/replace in these cases in the old RB template files.  However, I also assume there must be other classes, and/or properties, that need to be replaced as well.  Additionally, in most of our old templates there is an encoded data section, and I am not entirely confident this will carry over cleanly, if at all.
If it was only a handful of Report Templates, I wouldn't mind pushing through, or even re-writing, them manually, but there are a couple hundred.  

So, I am hoping somebody has some form of doc or notes for the class and property mappings (like the mappings used for the Delphi code migrations)... or (if I'm really lucky), there is some sort of utility or process to reliably migrate our old v9 RB templates with a few extra steps.]]>
        </description>
    </item>
    <item>
        <title>TppShape.radius</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21585/tppshape-radius</link>
        <pubDate>Tue, 04 Jan 2022 11:16:02 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>julien</dc:creator>
        <guid isPermaLink="false">21585@/FORUMS/discussions</guid>
        <description><![CDATA[Hi,
is it possible to have , in the next release, the TppShape.radius property published
for rounded rectangle.
thanks]]>
        </description>
    </item>
    <item>
        <title>Search description/manual for Teechart RAP-commands</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21727/search-description-manual-for-teechart-rap-commands</link>
        <pubDate>Mon, 12 Dec 2022 14:54:21 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>rdeutsch</dc:creator>
        <guid isPermaLink="false">21727@/FORUMS/discussions</guid>
        <description><![CDATA[Hi
Is there a description/manual for Teechart RAP-commands available? 
I would configure a teechart with RAP to show diffenent colors for each bar.

In Delphi code i would do something like this:

ppDPTeeChart1.Chart.ColorPalette[0] := clRed;
ppDPTeeChart1.Chart.ColorPalette[1] := clBlue;

But how can i do that in RAP?

Thanks for any support.
Br, Robert
]]>
        </description>
    </item>
    <item>
        <title>AV Occurs on Report Designer's Report Objects page when Win64.</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21716/av-occurs-on-report-designers-report-objects-page-when-win64</link>
        <pubDate>Mon, 21 Nov 2022 11:35:32 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>sahtagil</dc:creator>
        <guid isPermaLink="false">21716@/FORUMS/discussions</guid>
        <description><![CDATA[Same AV occurs on your demos also, for example you can compile your RAP demo project for Win64 platform then run the app, open the report designer and go to Calc Tab then click the Objects page on the right bottom corner. the AV will be occurred.

Problem occuring for the first selected component that is Report, when click other components there is no problem.

Delphi Ver: 11.2 Alexandria
RBuilder Ver: 21.05
]]>
        </description>
    </item>
    <item>
        <title>Google Map</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21717/google-map</link>
        <pubDate>Mon, 21 Nov 2022 19:20:54 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>Roberson</dc:creator>
        <guid isPermaLink="false">21717@/FORUMS/discussions</guid>
        <description><![CDATA[Is there any Google Map tool documentation available?]]>
        </description>
    </item>
    <item>
        <title>How to call external dll method?</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21667/how-to-call-external-dll-method</link>
        <pubDate>Wed, 22 Jun 2022 03:55:09 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>sherlyn20</dc:creator>
        <guid isPermaLink="false">21667@/FORUMS/discussions</guid>
        <description><![CDATA[Hi, can report builder report script call external method from dll? provided with delphi example as below, is that any way to do this? Thanks.

<blockquote>
procedure Hello; external 'Project1.dll' name 'Hello';

procedure Test;
begin
      Hello;
end;
</blockquote>]]>
        </description>
    </item>
    <item>
        <title>Sorting a report by a variable</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21668/sorting-a-report-by-a-variable</link>
        <pubDate>Thu, 23 Jun 2022 09:34:28 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>Rhonda</dc:creator>
        <guid isPermaLink="false">21668@/FORUMS/discussions</guid>
        <description><![CDATA[I have a complex report with several queries linked together and then numerous calculations using variables in the design.
After days of work getting it perfect the customer tells me he wants the report sorted by one of the variables which is a calculation based on the values from 2 sub queries

Before I rip the whole thing apart to get the calculated field into the query I thought I'd ask if there is a technique to sort a report based on the value of a variable on the Design page rather than the Sort tab of a query on the Data page.

Thanks in advance.

Rhonda Ridge]]>
        </description>
    </item>
    <item>
        <title>TppPrinterDialog access violation</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21644/tppprinterdialog-access-violation</link>
        <pubDate>Wed, 18 May 2022 16:10:12 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>Fabio</dc:creator>
        <guid isPermaLink="false">21644@/FORUMS/discussions</guid>
        <description><![CDATA[When I try to open it

    lPrintDialog := TppPrintDialog.create(self);
    lPrintDialog.AllowPrintToArchive := false;
    lPrintDialog.allowprinttofile := true;
    lPrintDialog.DeviceType := dtScreen;
    lPrintDialog.LanguageIndex := 7;
    pp_report.printer.printername := nome_stampante;
    lPrintDialog.printer := pp_report.printer;
    lPrintDialog.textfilename := pp_report.textfilename;

    //lPrintDialog.btnPrinterProperties.enabled := false;
    lPrintDialog.rdbCurrentPage.enabled := false;
    lPrintDialog.rdbPages.enabled := false;
    lPrintDialog.edtPageRange.enabled := false;
    lPrintDialog.edtPageRange.color := clBtnFace;
    lPrintDialog.cbxPrintWhat.enabled := false;
    lPrintDialog.cbxPrintWhat.color := clBtnFace;

    if lPrintDialog.ShowModal &lt;&gt; mrOk then

I receive an access violation]]>
        </description>
    </item>
    <item>
        <title>How to change a font programatically?</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/20959/how-to-change-a-font-programatically</link>
        <pubDate>Sun, 29 Jul 2018 21:28:44 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>Bruce</dc:creator>
        <guid isPermaLink="false">20959@/FORUMS/discussions</guid>
        <description><![CDATA[Hi, I am fairly new to RAP and I need some advice on how to change a font from within a report based on data within the report. I have a printed label with limited space as a report. One line of the information can vary from 10 characters to 60+. I wish to be able to have a larger font when few characters are printed and then change the font size to a smaller font when more data has to be printed.

Can someone please provide a clue on how this is done?

Best regards,

Bruce]]>
        </description>
    </item>
    <item>
        <title>Access Violation in reports with variables after upgrading to 21.02.</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21563/access-violation-in-reports-with-variables-after-upgrading-to-21-02</link>
        <pubDate>Fri, 15 Oct 2021 14:27:13 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>adb28</dc:creator>
        <guid isPermaLink="false">21563@/FORUMS/discussions</guid>
        <description><![CDATA[Hi,

I've upgraded to Report Builder 21.02 from 11.08. We're using it with Delphi 7. I'm trying to open and convert some template (rtm) file but get an Access Violation in rbRAP217.bpl when calling ppReport1.Template.LoadFromFile.

The error occurs in reports using variables.  If I remove the variable the report opens ok. Any help would be appreciated.]]>
        </description>
    </item>
    <item>
        <title>Passthrough functions and cancelling a report</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21557/passthrough-functions-and-cancelling-a-report</link>
        <pubDate>Wed, 29 Sep 2021 15:10:54 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>Rhonda</dc:creator>
        <guid isPermaLink="false">21557@/FORUMS/discussions</guid>
        <description><![CDATA[Hi,

RB 21.01
Delphi 10.3.3

I have quite a few passthrough functions in RB that request interaction from a user when running a report.

My functions present a dialog asking for a choice and show an OK and a Cancel button.

If the user chooses Cancel how do I prevent a blank Preview page? 

I've tried testing the return value of my function within the report and calling Report.Cancel but this doesn't prevent a blank Preview.

All reports are stored as template files and are loaded into a TppReport component therefore the functions are called from RAP so I need a way to cancel the Preview page from within the report itself not Delphi code.

Thanks in advance

Rhonda




]]>
        </description>
    </item>
    <item>
        <title>rbRAP217 Error</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21555/rbrap217-error</link>
        <pubDate>Mon, 27 Sep 2021 12:41:44 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>MCF</dc:creator>
        <guid isPermaLink="false">21555@/FORUMS/discussions</guid>
        <description><![CDATA[I have upgraded to Report Builder version 21.02 in Delphi 7 and when I try and build rbRAP217 I get the error:
[Fatal Error] rbRAP217.dpk(48): Unit raFunc was compiled with a different version of ppClass.TppCustomReport

I only have a dcu for raFunc and no pas file any suggestions would be most appreciated. Should the pas files be included ?]]>
        </description>
    </item>
    <item>
        <title>Printing records as they appear in a cxGrid fires exception</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21525/printing-records-as-they-appear-in-a-cxgrid-fires-exception</link>
        <pubDate>Tue, 29 Jun 2021 10:53:42 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>gerhardsachs</dc:creator>
        <guid isPermaLink="false">21525@/FORUMS/discussions</guid>
        <description><![CDATA[I have a cxGrid where the user can add and sort records. I want to print only those records in the same sequence as they are displayed on screen. The report is very simple, no subreports etc. I am using a TppDBPipeline that is connected to a TDataset. The cxGrid shows the same data but uses a second dataset. I tried to set the recordcount to that of the grid :
   nRecordsToPrint := tvJobMw.DataController.FilteredRecordCount;
   RecordIndexToPrint := 0;
   ppDBPipeline1.RangeEnd := reCount;
   ppDBPipeline1.RangeEndCount := nRecordsToPrint;

In the OnTraversal event I look in the grids datacontroller for the unique ID value of the records, then position the pipelines datasource to the same record :
tvJobMw is the cxGrids tableview.
procedure TFormTestJobs.ppDBPipeline1Traversal(Sender: TObject);
var
   ci, ri, id, n: integer;
   ds: TDataset;
  i: Integer;
begin
  inherited;
   ds := ppDBPipeline1.DataSource.DataSet;
   ri := tvJobMw.DataController.FilteredRecordIndex[RecordIndexToPrint];
   ci := tvJobMw.GetColumnByFieldName('ID').Index;
   id := tvJobMw.DataController.Values[ri, ci];
   if ds.Locate('ID', id, []) then begin
      n := ds['ID'];
   end;

   if RecordIndexToPrint &lt; nRecordsToPrint then
      Inc(RecordIndexToPrint);
end;

After print I get an exception : List index outside of valid range (14).
Note: there are 14 records to print.
After closing the exception the report is displayed and shows the 14 reords.
So without exception everything seems ok.

I expected the pipeline to stop fetching data after the RangeEndCount has exceeded.
But obviously I am wrong.
Do you know why ?

Regards
Gerhard Sachs]]>
        </description>
    </item>
    <item>
        <title>Handle RAP exception outside debugger</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21510/handle-rap-exception-outside-debugger</link>
        <pubDate>Tue, 01 Jun 2021 10:30:57 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>jeroenrottink</dc:creator>
        <guid isPermaLink="false">21510@/FORUMS/discussions</guid>
        <description><![CDATA[In the process of converting applications from RB14 to RB20, I found a error in a report.
The RAP code referenced a field ORDERS['FAX'] while the field didn't exist anymore.
In RB14 error is not visible at runtime even when ran inside the debugger.
In RB20 the Delphi debugger raises the exception EDatabaseError 'Field 'FAX' not found'.
This is only visible in the debugger.

Is it possible to get this exception also when ran outside the debugger so I can handle it?
I would like to verify the reports (including the RAP code) against these kind of mistakes.]]>
        </description>
    </item>
    <item>
        <title>Defining custom TabStops for TppRichText?</title>
        <link>https://www.digital-metaphors.com/FORUMS/discussion/21396/defining-custom-tabstops-for-tpprichtext</link>
        <pubDate>Tue, 22 Sep 2020 14:05:14 +0000</pubDate>
        <category>RAP</category>
        <dc:creator>rkaiser</dc:creator>
        <guid isPermaLink="false">21396@/FORUMS/discussions</guid>
        <description><![CDATA[Hello,
We have a TppRichtext that is supposed to be filled with text that contains tabulator chars.

To simulate columns we want to add custom tabstops to that control.

In Delphi i would write:

   richtext1.Lines.Clear;
   richtext1.Paragraph.TabCount := 3;
   richtext1.Paragraph.Tab[0] := 80;
   richtext1.Paragraph.Tab[1] := 150;
   richtext1.Paragraph.Tab[2] := 200;
   richtext1.Lines.Add('Test1'#9'Test2'#9'Test3');

However in TppRichText i have no access to the "Paragraph" property (although the help says that it decends from the Delphi class...).

How can i define custom tabstops in a TppRichEdit?

Thanks in advance,
Ralf
]]>
        </description>
    </item>
   </channel>
</rss>
