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

nardmoseley

About

Username
nardmoseley
Joined
Visits
8,265
Last Active
Roles
Administrator

Comments


  • - to provide a reference to the report, you might try creating a global
    singleton object or variable. Use the Report.Template.OnLoadend event in
    Delphi to initialize the report reference. Then in your RAP pass-thru
    functions …

  • - You need to pass the Report as a parameter to the RAP function. (Just as
    you would need to pass the Report as a parameter to a stand alone function
    in Delphi).

    myFunc(aReport, aSecondParam);

    - TraParamList r…

  • - creating reports in code is no different than creating reports via the
    designer. The designer is essence a visual layout tool that is creates the
    report in code for you.

    - simples way to use an existing report as a sub…

  • - For any objects that you create in code (report, label, etc) make sure
    that use the main report.Owner as the owner.

    - For any elements that you add to a band, set object.Band (do nto call
    Band.AddObject). Likewise if y…

  • I recommend updating to RB 10.04. Over time we have fixed some intermittent
    AV's that a few customers were reporting. You can download a trial version
    from our web site if you would like to peform some testing.

    We litera…

  • Use the TppVariable rather than the TppDBCalc.

    Here are some guidelines for using TppVariable.

    a. Set the Variable.DataType

    b. Code the calculations using the Variable.OnCalc event.

    c. Use the Timing…

  • You will need to create a custom TppDrawCommand descendant and override the
    DrawCommand.Draw method to render to the screen and to printer. See the
    following article.


    ---------------------------------------
    Ar…

  • - one option is to create a new myShape component that can draw triangles
    and hexagons. The source code the TppShape resides in ppCtrls.pas and can be
    used as a starting point. Also see TppDrawShape in ppDrwCmds.pas. Creating a

  • Please do not cross post.

    This question has been answered in the End-User newsgroup, although the DADE
    newsgroup would be more appropriate. in Query builder & domain fields Comment by nardmoseley December 2006

  • Make sure that Report.PassSettings is set to psTwoPass.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

  • Position the mouse of the Variable in the GroupFooter. Press the right mouse
    button and select the Timing... menu option. Use the Timing dialog to
    configure the variable to reset on group end.


    Some tips on performi…

  • Youcan call datapipeline GetFieldValue and pass the field name

    GetFieldValue(aFieldName: string): Variant



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

  • I just emailed you the TraTListRTTI source code.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com\

  • - One option is to use a TStringList. TStringList includes support for Sort
    and enables you to store a string and associated object.

    - RAP RTTI support for TList is defined in raObjectRTTI, the class name is
    TraTListRTTI…

  • - for future reference please configure your newsreader to post using your
    first and last name.

    - please try to post to the most relevant newsgroup. If you are using the RB
    Data workspace (DADE) to create SQL queries and…

  • - Do not use DetailBand.BeforeGenerate

    - Try using the Report.IniitalizeParameters event or perhaps
    Report.BeforePrint. Event BeforePrint can fire multiple times - once when
    you preview and again when you print, etc. Add…

  • - when creating components, use the report.Owner

    - rather than setting ppImage.Parent, you need to set the ppImage.Band
    property to ppReport.DetailBand (to add the component to detailband).

    - no need to set Image.Vi…

  • - try leaving the Memo.Visible to true for all cases and just toggle the
    DBText.Visible. (The Memo is a stretchable object and can affect
    pagination - so that might be causing the engine to get confused.)

    - from the Repo…

  • Ok, I understand better now.

    For the next maintenance release, we will add RAP RTTI for TdaCriteria. Here
    is the code that you need to make this work in the version you are using
    now.


    uses
    ppRTTI,…

  • Correct. As a visaul example, try using the Query Designer to add search
    criteria. You will see a list of available fields from which to choose. Once
    you choose a field, you can specify the search operator and value. If you
    w…

  • Keith emailed a followed up to support and has resolved this issue. He
    compiles RB into custom packages and those were causing the problem.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
    \

  • - there is an issue with RB 10.04 having two or more Report Designers open
    in the Delphi IDE at the same time. You can email
    support@digital-metaphors.com to request a patch.

    - the other possibility is that you have a co…
  • Thanks for providing the example. We have created a patch to RB 10.05 that
    fixes this. Registered users of RB 10.05 can email
    support@digital-metaphors.com and request the patch.

    --
    Nard Moseley
    Digital Metaphors

  • I tries a simple testing using D7 and RB 10.05 and did not encounter any
    errors.

    Are you using RB 10.05?

    Can you specify exact steps required to reproduce?

    --
    Nard Moseley
    Digital Metaphors
  • - to compile a RAP program try...

    lbCompiled := myProgram.Compile(False, False);

    - the Program class a couple of public properties for syntax errors.

    property SyntaxErrors[Index: Integer]: TraSyntaxError read <…
    in RAP Comment by nardmoseley February 2007

  • RAP was not designed to be used without running the report. A Variable
    OnCalc event-handler typically fires when the report is generating.

    That being said, I was able to create an example that you can download. The
    examp…
    in RAP Comment by nardmoseley February 2007
  • When the report runs, each time the Variable generates on the page, its
    OnCalc event-handler will fire and the calculation will be stored to the
    Variable.Value and rendered to the output.

    I do not understand the question.
    in RAP Comment by nardmoseley February 2007

  • Here is an example of programmatically creating a Variable OnCalc
    event-handler for RAP.

    www.digital-metaphors.com/tips/RAPCreateVariableOnCalcHandler.zip


    --
    Nard Moseley
    Digital Metaphors
    www.…
    in RAP Comment by nardmoseley January 2007
  • - Please do not cross post messages

    - Please use your full name when posting messages

    - These newsgroups are for software developers using Delphi and
    ReportBuilder to build reporting solutions. If you are using a product …

  • Here is a Delphi code example of how to do this..

    www.digital-metaphors.com/tips/LastDynamicDetailLine.zip

    You will probably need to add some custom pass-thru functions to implement
    it in RAP, see tech tip below.