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

Printing without knowing what fields are available in advance

edited December 2003 in General
How can I print a result table from a dynamic query? I have written a
utility for our system to allow the user to do their own queries. I want to
allow them to print the result. How do I do this when I don't know what
fields to display before hand?

RB Pro, Delphi 6

Thanks.
_________________________________________
Don Gollahon dlgllhn@InHisStepsSoftware.com
ICQ#: 115831669
"What in Eternity does it matter?"
_________________________________________

Comments

  • edited December 2003
    Hi Don,

    I'm not sure I fully understand the timing of your application. Have you
    already loaded a report when the user tries to use your utility to create a
    query? Your best option would be to process all data before the report is
    loaded and then dynamically create the report based on the query your users
    create.

    ---------------------------------------------
    Tech Tip: Create Reports in Code
    ---------------------------------------------

    A ReportBuilder report is composed of a set
    of components. Like other standard Delphi
    components, the components which make up the
    report layout have a run-time interface.
    That is they can be created and configured
    using Object Pascal code.


    A complete example of creating a report entirely
    in code is contained in the Developers Guide.

    The Developers Guide is located in the
    ..\RBuilder\Developers Guide\ directory.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2003
    "Nico Cizik (Digital Metaphors)" wrote in
  • edited December 2003
    Hi Don,

    Unfortunately there are no built-in components that do what you are saying.
    However there are a number of add-on components for ReportBuilder that could
    possibly work for you. One new add-on that looks very promising is Grid
    Pack for ReportBuilder, created by William Yu (http://www.planit-tech.com).
    If you would like to see other add-on components for ReportBuilder, please
    visit the "Companion Products" section of our web site.
    http://www.digital-metaphors.com/Subpages/Downloads/companionproductsRCL.html

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.