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

RB problem with IntraWeb

edited January 2009 in General
Hi all,

Using
RB 10.06
D6 Pro
IW 10.0.7

I have been trying to print PDFs from my IW app and I've got stumped on
a problem with RB. My main app lets the user create his own reports and
save them in a Firebird table, but to my understanding the Datamodules
need to be the same name as they were in DesginTime or else the report
tries to print inifinte pages.

If I open one of the reports in my project, save it as a file and load
it on the fly in Intraweb everything seems to work. Now, the problem is,
my clients have a lot of reports and I can create them dynamically in my
main app, but not in my IW app because of this behaviour.

Is there any way to resolve this? I tried to call the
ResolvePipelineReferences procedure with no success.

Sorry if the questions seems too silly or noob, I'm in a pinch and
tired.

Thanks
Andrew

Comments

  • edited January 2009

    Web apps must be thread safe. For a dicussion of thread-safety, check out
    the help topic for TppReport.BackgroundPrintSettings

    The preferred solution is to use RB's Visual Data Access Environemtn (DADE)
    to implement the data access required for the report. That approach enables
    the data access definition to be saved/loaded with the report. Then you need
    a web module wth a TppReport and the TADOConnection (or whatever
    connection/session component you are using).

    With your current solution, you are probably using global datamodules - that
    will not work for a web app. The Report and Data Access components need to
    reside on the same DataModule and a separate instance should be used for
    each web session.


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

    Best regards,

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