Printing without knowing what fields are available in advance
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?"
_________________________________________
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?"
_________________________________________
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com