Reports out of dynamic data
Hi! I've the order to write a "print server" which gets data from different
programs. It stores the data in normal databases (for now DBase or Paradox -
still planning) which are accessible by TDatasources (each database -
sometimes even linked to each other in one report) in Delphi 5. The end-user
should be able to produce his own reports - my problem is that I create the
datasources at run-time and I don't know how I can't assign the Datasources
to the report loaded from a file. How is that handled? Because I can't check
it out (I've problems running RBuilder demo on my Delphi - will try again in
a few minutes) I ask here hoping someone understands what I want and can
help me.
Best regards,
Helge.
programs. It stores the data in normal databases (for now DBase or Paradox -
still planning) which are accessible by TDatasources (each database -
sometimes even linked to each other in one report) in Delphi 5. The end-user
should be able to produce his own reports - my problem is that I create the
datasources at run-time and I don't know how I can't assign the Datasources
to the report loaded from a file. How is that handled? Because I can't check
it out (I've problems running RBuilder demo on my Delphi - will try again in
a few minutes) I ask here hoping someone understands what I want and can
help me.
Best regards,
Helge.
This discussion has been closed.
Comments
datasource you create. When you launch the end user designer, the user will
be able to see all of the visible datapipelines so they s/he can create a
report from the data you provide. The report and subreports each have a
DataPipeline property that you can assign. You may also want to dynamically
create a report layout for the end user, based onthe dataaccess definition.
For example, if you just created a master detail relationship on two
datasources, you could create an empty report with a subreport in the detail
band and have the datapipelines already assigned when the run time designer
is shown.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
will
That's clear - but I need to load the report from file (the user has
designed it before). I might change it in that way, that there are always
two datapipelines (master & detail) - but in some cases the detail might be
not assigned (empty). I hope you get my question/problem.
Helge.
different
no such thing as a 'normal' database.
end-user
the
Datasources
check
in
Spend some time getting to know how to create a report in code. Get the
basics down (it isnt' too difficult).
There are some 'code based' examples in the tech-tip newsgroup. Hopefully
that will get you started.
Ed Dressel
Team DM