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

Reports out of dynamic data

edited November 2001 in General
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.

Comments

  • edited November 2001
    You could dynamically create datapipeline components, one for each
    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


  • edited November 2001
    > You could dynamically create datapipeline components, one for each
    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.
  • edited November 2001
    > Hi! I've the order to write a "print server" which gets data from
    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
This discussion has been closed.