Home RAP

how to send a data from delphi codes to report builder

edited May 2004 in RAP
Hi experts,

I'm not sure if the subject is correct but let me brief to you my problem.
Actually the problem is very simple its just that i don't know how to fix
it. Anyway here it is.

I have made to date time picker on my delphi program which identifies the
transaction From and transaction TO. Now when clicking the print button, the
query will be created with those records that matches the From and TO. Here
is my problem. How will I send those transaction From and TO to the report
since I need this to be put on the heading.

Sorry guys, i'm still a beginner on report builder. I'm using Delphi 6 and
RB6Enterprise.

Carlo

Comments

  • edited May 2004

    You can define ask at runtime crieria by using ReportBuilder AutoSearch
    parameter feature. (see article below).

    To print the AutoSearch parameter values in the heading of the report, use
    the Report.AutoSearchDescription property or the
    Report.GetAutoSearchDescriptionLines method. For an example, check out
    RBuilder\Demos\AutoSearch\Build Description of AutoSearch Settings

    ----------------------------------------------------
    Tech Tips: Creating AutoSearch parameters via DADE
    ----------------------------------------------------


    1. Access the Data workspace of the Report Designer.

    2. Create a DataView using the Query Wizard or Query Designer.

    2. A DataView tool window will be displayed in the data workspace.

    3. Press the Search button. The Search tab of the Query Designer will be
    displayed.

    4. Add a search criteria item and select the AutoSearch checkbox. You can
    optionally select Mandatory as desired.

    5. Close the query designer.

    6. Now when you select the Preview tab of the Report Designer. A search
    button will appear on the toolbar. This displays the AutoSearch dialog.

    7. By calling Report.Print in code, or by selecting print/preview from the
    report explorer the AutoSearch dialog will be automatically be displayed.



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


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.