Home nicocizik Comments
New Blog Posts: Merging Reports - Part 1 and Part 2

nicocizik

About

Username
nicocizik
Joined
Visits
2,424
Last Active
Roles
Administrator
Company Name
Digital Metaphors Corporation

Comments

  • Hi Peter,

    Default parameters are not supported for RAP pass-thru functions. This
    is a feature we will consider researching for a later release of
    ReportBuilder.

  • Hi Jeroen,

    We were able to recreate this and are currently researching a solution.
    I will post here when one is found.

    Currently you will need to call the ChartSeriesSetTitle routine for each
    series manually (outs…
  • Hi Ruud,

    Does this happen with every report and every image you try to create
    this way? Does it occur just when previewing or also when printing or
    exporting to file? As a test, try setting
    Report.PreviewFormSettings.S…
  • Hi Ruud,

    Thanks for the information however I'm still not seeing this behavior.
    Is this something that only happens in the designer? Does it happen
    with DBText or only labels that are manually entered?

    What angle a…
  • Hi Ruud,

    For future reference please try to post to the relevant newsgroup. I'm
    unsure how this relates to RAP.

    What angle is your text set to? In my testing with a simple DBText set
    to a 45 degree angle and autos…
  • Hi Jeroen,


    Correct, the crosstab component is designed to be used with numeric
    values. Currently you will need to create the table manually using
    lines or shapes.

    This is something we will consider enhancing …
  • Hi Tone,

    By the time the OnStartPage event fires, the PrinterSetup information
    has already been passed to the page object so you would need to access
    that in order to alter the Margins.

    In Delphi it would look like …
  • Hi Tone,

    Which event are you using to alter the header band height. You need to
    be sure you use an event that fires early enough so the engine can make
    the changes needed. I suggest trying the OnStartPage event.

  • Hi Petter,

    Based on your specifications, shouldn't the below sum be 6.5 or am I
    still missing the problem?

    If you use a Variable of type Double to manually keep track of the Count
    sum, you should get the effect you …
  • Hi Petter,

    I'm very sorry, it appears I misunderstood your initial question. I was
    under the impression you simply wanted to hide a component when the
    field was blank.

    For this situation, I would not recommend usin…
  • Hi Petter,


    No, the DBCalc component accesses the dataset directly and is not tied
    to any other report component.

  • Hi Petter,

    Before the summary band prints (Band.BeforePrint), check the value of
    the DB field tied to the DBText directly and then toggle the visibility
    of any other report components as needed.

    procedure SummaryBef…
  • Hi Robert,

    The RAP FAQ is located in the ReportBuilder RAP Reference which is
    installed into the Delphi help system when ReportBuilder is installed.

    There are also numerous RAP articles and examples located on-line in our…
  • Hi Robert,

    Below is an exerpt from the RAP FAQ in the help documentation.

    "Since RAP doesn't support Set types, will I be able to set TFont.Style
    in code?

    Yes. We have added properties to TFont to allow you to …
  • Great! I'm glad you got the issue sorted.

  • Hi Oliver,

    There should not be any breaking changes with regards to RAP between RB
    12 and RB 14.

    The first thing to try is set the
    Report.PreviewFormSettings.SinglePageOnly to True and see if the new
    threaded …
  • Hi Ingo,

    Your specifications would be much easier to meet by doing this in two
    print jobs (2 reports). 1 report would print 4 copies of the invoice,
    then the second would print the packing list.

    One report object c…
  • Hi Paul,

    There should be no need to create a local instance of an RTTI class.

    The purpose of the RAP RTTI classes is to give RAP access to any public
    routines and properties that are defined and implemented in the RTTI
  • Hi Jim,

    When a page breaks, the Band.BeforePrint will fire again essentially
    adding the text to the memo a second time. Note that there is no
    guarantee that any ReportBuilder events (except for Variable.OnCalc)
    will fir…
  • Hi Diego,

    Thanks, I now understand what is happening. Calling Report.SendMail
    will generate a report to file and execute the AfterPrint again and
    again in an endless loop.

    One way to work around this is to create a…
  • Hi Diego,

    In my quick testing with a simple app, the OnAfterPrint is only fired
    once (therefor sending only one email) when previewing the report.

    Note that the AfterPrint is only called once the Preview Window is
    c…
  • Hi Russell,

    You can use the various RichText Paragraph properties to alter the
    actual RTF data.

    Take a look at the following properties in the RB help for more information.

    SelLength, SelStart, SelText
  • Hi Ignacio,

    An autosized component width is never actually changed, the drawcommand
    width is altered when the component is rendered.

    One option would be to measure the text yourself using a Bitmap or
    Printer Canvas …
  • Hi Ignacio,

    I'm sorry but I'm unclear about what you are trying to accomplish. Are
    you trying to manipulate the horizontal location of a report component
    in RAP code? If so, this should be fairly simple to do before the
    in Arrays Comment by nicocizik July 2014
  • Hi Ignacio,

    Arrays are not supported in RAP. If you need to keep a list of values,
    I suggest using a TStringList object to do so in RAP.

    in Arrays Comment by nicocizik July 2014
  • Hi Garry,

    The Count calculation will always give the entire count of the dataset
    up until that point in traversal. If you would like to filter the count
    value in any way, I suggest using a TppVariable and incrementing it's
  • Hi Garry,

    Be sure the variable you are using to make these calculations has a
    numeric data type, not string.

    Please send a simple example of this in .zip format to
    support@digital-metaphors.com and I'll take a look …
  • Hi Davide,

    It is not currently possible to alter the Delphi FormatSettings directly
    from RAP. You will need to create a pass thru function in order to
    accomplish this.

    See the RAP demos for examples of creating pas…
  • Hi Davide,

    ReportBuilder uses the Windows format settings by default. See the
    following article on how this can be changed on a report-to-report basis.

    in Setting number decimal / group separator Comment by nicocizik November 2014
  • Hi Stef,

    Try creating this routine in Delphi first, then create a passthru
    function for it. The basic rule of thumb is that if you can get it
    working in Delphi, it can work in RAP with passthru.