Putting a RichText or a DBRichtext component on a report cause Intraweb
to crash with an invalid window handle. I am posting it here to make
sure the next time I come across that problem (or someone else), there
will be a search result that give a clue.
Comments
Are you using the latest release, ReportBuilder 10.05? (Check the Help |
About box of the report designer to determine the version number). If not
download a trial version and perform the same test.
We have customers using RB and IntraWeb, no one else has reported this.
ReportBuilder Server Edition works properly with RichText, so it definitely
works in a multi-threaded server/service environment and in a web app
environment.
--------------------------------------------
Article: ReportBuilder and IntraWeb
--------------------------------------------
There are two basic approaches to using ReportBuilder to implement web
applications.
1. ReportBuilder Server Edition
Live Demo: www.digital-metaphors.com/RBServerLive
Features:
http://www.digital-metaphors.com/Subpages/Products/Server/Features.html
ReportBuilder Server Edition contains the most comprehensive,
productive,high performance solution available. The Server Edition enables
you to build a multi-tier web solution within a few hours of installating
the product. Spend an afternoon with the trial version to evaluate it. The
Server has the ability to incrementally generate pages on demand and the
WebTier performs session management, caching, and generates a high quality
xhtml/javascript
report previewer.
The demos included with RB Server Edition contain examples of using the RB
Server's WebTier component within Delphi Web Broker apps: ISAPI, ASP .Net,
Apache.
For integration with an IntraWeb app, there are two options you can
research:
a. Use the RB WebTier and Delphi's Web Broker to build an ISAPI application.
Then call the reports by passing an appropriate URL to the Web Server. This
option is definitely doable.
b. Use the RB WebTier within the IntraWeb app itself. We have not tried this
option. The WebTier requires that the web request sent to the Web
application be passed thru to it. I think once you spend time with RB Server
Trial Edition and tutorials in the Server Developers Guide you can determine
whether this is feasable.
2. Build your own
The other approach to implementing publishing reports to the web is to use
any of the ReportBuilder Editions to impelement your own web solution.
a. Make sure that you provide a thread-safe container for the report to
execute.
b. Make sure that no dialogs are displayed by the report (i.e. set
Report.ShowPrintDialog, ShowCancelDialog, etc to False.
c. Set Report.EnableProcessMessages to False.
The simplest solution to implementing your own server is to generate the
reports to PDF return them (or a link to them) to the web browser. A more
complex solution would involve creating a custom report viewer as is done by
ReportBuilder Server Edition:
www.digital-metaphors.com/RBServerLive
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Using 10.05 version.
D7, IW 8.0.22, RB 10.09
Thanks All,
Branden
report would be freed just fine if this were a thread issue. And even more,
that it only happens when there is text in the RichText component.
Thank you,
Branden