Joined: 05 May 2008
Online Status: Offline
Posts: 1
Topic: Dynamically Adding Subreports in C++ Posted: 05 May 2008 at 1:32pm
I did some searching but haven't seen any relevant posts on this. I also posted this in the Diamond support forums but they seem to be really unused/slow.
Basically, I'd like to replace our current report engine with Crystal Reports. I'm still very new to CR, however, so I don't know all of its potential or limitations. We develop our current application in Borland C++ Builder 6, so I've downloaded CR-XI-R2 and the corresponding VCL component package.
I've successfully created reports in the designer and then previewed/printed/exported them from our application. That was straightforward enough, so now I'm trying to do more complicated things. One important feature we were doing previously was to dynamically combine several disparate reports into one big "super" report that prints out as one continuous document.
After looking in the documentation, I've found a way to do this statically in the CR Report Designer using multiple report footers and subreports. The problem with this is that we have no way of knowing what kind or how many reports the user will want to print together until runtime. We need a way of dynamically creating a report with multiple subreports at runtime, but there doesn't appear to be a way of doing this (at least through the VCL components).
Is this possible at all using the other development plug-ins like COM or .NET or ActiveX? If not, is there any other way to do what I'm trying to do?
Also, what's the best way to pass certain parameters from our application to the report? These parameters include things that will be used to filter/format data, simple integers and strings kept in memory (not in tables).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum