Skip to Content
author's profile photo Former Member
Former Member

Create Dynamic reports

Post Author: Thomas Gyllencreutz

CA Forum: Crystal Reports

Hi!In Crystal Reports 8.5 there is 2 functions AddTextObject and AddFieldObject that allows me to add objects on-the-fly on a blank report. I cant find these methods anywhere in Business Objects XI Release 2. Is there another way of adding objects text and field objects at runtime?The problem is that I dont know what data the dataset will contain at design-time. The dataset is filled with data based on a user created SQL string and the user is allowed to decide what outpfileds they want in the report. And the final thing is to generate a report that they can preview and maybe print/export to pdf or whatever they wanna do with it.I have scanned the forum and web and found lots of articles that describes almost everything but this problem. Any suggestions what to do?Im using: Visual Studio 2005Business Objects XI R2The solution has to be 100% VB .NET (no activex components)The application is a Client application (no serverside generated reports)RegardsThomas Gyllencreutz

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2008 at 07:47 PM

    Post Author: turz

    CA Forum: Crystal Reports

    Hi I am trying to do something very similar, and I have found that you can create objects in Crystal Reports XI R2 SP2 and later. I am currently using SP3 and have found a way to create report objects, but I am relativly new to Crystal Reports and I am not sure how to set the values. You create the object by using classes found in the CrystalDecisions.ReportAppServer.ReportDefModel namespace. You can then add the object to the report through the ReportClientDocument. If anyone knows how to set the values of Report objects, such as text objects, please point me in the right direction.ThanksChris

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.