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

could not run program : <rap procedure>

edited July 2003 in General
hi,
i'm having problems with a rap procedure,
i'm calling this procedure defined in a subreport from a subsubreport
so in the subsubreport i have a ppDBvar wich is in the groupheader and is
defined Lookahead so it totals some value in the subsubreport
now in the oncalc event of this ppDBvar i'm calling this procedure of the
subreport wich adds this total to a ppVar in that subreport
and thats when i get the error,
the ppVar variable is also in the groupheader of the subreport
any clues?
tia,
marc

Comments

  • edited July 2003
    Marc,

    Be sure that you are using the ppDBCalc's OnCalc event to perform any
    calculations. Please send a small example demonstrating the problem to
    support@digital-metaphors.com and we'll take a closer look for you.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    nico,
    i'll see what i can come up with
    thx,
    marc

  • edited July 2003
    nico,
    the problem was caused by the fact that the variant type was incorrect
    so that problem went away but i still seem to be unable to total in the
    group header the details of the subreport
    in the main subreport i have a procedure wich adds the value to the variable
    in the group header
    i see i get the values in the procedure but the variable prints 0,0 probably
    because the subreport is printed after the group header
    i have set lookahead to true for the variable
    can i print this total of the subreports in the header of the main sub
    report?

    tia,
    marc

  • edited July 2003
    Hi Marc,

    I just created another example that displays the grand total of the
    subreports in the header of the main report using RAP. If you would like to
    keep a running total, you will have to adjust the timing property of the
    variable in the report header. Hope this helps.

    http://www.digital-metaphors.com/tips/RAPGrandTotalInHeader.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Nico,
    this is neat, very neat!
    i'm gonna try incorporate this into a sub report wich totals the embedded
    subreport
    i used to define a procedure wich adds to the variable
    defining a globalvar wich keeps a reference to the actual var is superb
    i'll let you know if it works for me
    thx
    marc


  • edited July 2003
    Nico,
    playing with the example i might have found a problem in the report
    designer,
    right click on the variable1(grand total) set the timing to pageStart
    the preview it, so the total only begins at the second page (i might
    question if this is the timing setting for a running total cause i have 0 on
    the first page en the total of the first page on the second one)
    anyway, switch back to design mode and change the timing back to pageEnd,
    when you do preview you get the same output as with pageStart
    now to get the desired output switch to design mode, select the variable1
    and hit f11 and select the alraedy selected pageEnd again and now it gives
    the desired result
    so i guess there's something wrong with the context editor setting the
    timing

    i have seen this before and that explains why i sometimes get the impression
    that something works and then again it doesn't
    if you can have a look at it
    thx
    marc

  • edited July 2003
    Nico,
    i've altered your example to my method using a procedure to add to the
    variable
    and it works to, so i guess that my post claiming a problem in the right
    click editor to set the timing will be the cause of my problems
    so please get back to me to confirm or deny this (so i know if i have a
    problem with my installation of Rb or not)
    tia,
    marc

  • edited July 2003
    Hi Marc,

    I received your examples through e-mail and am researching a solution for
    you. I'll let you know as soon as I get something. Thanks for your
    patience.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    cool!

This discussion has been closed.