Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 120339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:47:44+00:00 2026-05-11T03:47:44+00:00

I want to know I can dynamically modify an existing Crystal Report (using C#

  • 0

I want to know I can dynamically modify an existing Crystal Report (using C# and Crystal Reports 2008) so that it can report on fundamentally different data (from the same database) using the same layout. The reason is that we are building an application that allows the user to specify:

  1. A filter so that only the data they are interested in is displayed (i.e., whereclause).
    • [e.g., Only display buildings in NYC]
  2. Specify what tables are displayed
    • [e.g., Show buildings and floors but not rooms]
  3. Specify what fields are displayed
    • [e.g., Show building id, number, name, address and floor number]
  4. Change how a section is grouped
    • [e.g., Group by building use, build year, etc]
  5. Change the the fields used in a chart
    • [e.g., Area by Building Use, Occupancy by Building Use, Area by Building Id]

Because of the flexibility of the UI there are many different kinds of ‘questions’ the user can try to report on and I do not want to create a report for every possible combination. For an example of what I am trying to accomplish see the image below. The report on the left depicts buildings grouped by area. The report on the right depicts buildings grouped by site.

Report Comparison http://img119.imageshack.us/img119/9052/performancereportcomparbt7.png

EDIT:

I will attempt to be using report parameters to modify the report as suggested by Philippe Grondier. I have had success in doing this by suppressing groups. When a group is suppressed the groups slide up to fill the blank area so that everything lines up without blank space. However, the same behavior is not true of individual text objects. When a text object is suppressed the output for that field is an empty space. What I would like to do is suppress a text object such that the entire line is suppressed which would result in all the entries below it ‘bumping’ up by one line. How can I achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:47:45+00:00Added an answer on May 11, 2026 at 3:47 am

    Depending on the kind of update (and objects concerned by the update), you can use either the free craxdrt.dll (Designer Runtime Library.) or the not free craxddrt.dll (Designer Design and Runtime Library). I forgot the details but you will surely find them on the net.

    Your questions:

    1. Filter: it is possible to update the SQLQueryString of the report object at runtime or to update predeclared parameters so that they will be added to the ‘Where’ clause. I think adding parameters is limited to the craxddrt dll but updating existing ones can be done with the craxdrt dll. You can use the CR interface to update these parameters, or do it through code: one idea would be to update these values in your client interface (from the active form for example) and update them programmatically. Please check here for an example.
    2. Hidding tables: I don’t think that ‘hidding tables’ makes any sense, as you will need your tables to have all your relations available to calculate your summary values. Thus you can propose to your users the possibility to view/hide details or to view/hide your different grouping levels. This can easily be done with the free craxdrt library and the ‘areas’ collection/’suppress’ method of the report object.
    3. Once again, playing with the different areas of the report seem to be the best solution here
    4. I advise you not to think about it! Changing data order can lead to unpredictable results, specially when you calculate intermediate summaries at the group level. Depending on your requests, you could stick to proposal (2), by displaying of not a specific group on the report, or, for simple forms (1 group only), programmatically update at runtime a parameter that will be used in the group definition formula.
    5. Back to proposal (2): build a complete report will all expected data to be displayed, then hide/show the different sections of the report.

    There is another code example available here, showing you how to change the report connection to a different database/different tables at runtime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 84k
  • Answers 84k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The technical term for syntax # 1 is "nuts." That… May 11, 2026 at 5:03 pm
  • Editorial Team
    Editorial Team added an answer You might want to look at Dynamic LINQ from the… May 11, 2026 at 5:03 pm
  • Editorial Team
    Editorial Team added an answer Backup your database Follow these instructions: http://www.oracle.com/technology/obe/paa/obe-dbf/html/Move_DF.htm http://www.idevelopment.info/data/Oracle/DBA_tips/Database_Administration/DBA_35.shtml May 11, 2026 at 5:03 pm

Related Questions

The question How can I monkey-patch an instance method in Perl? got me thinking.
I know I can do something like the following code to dynamically create a
I am working on an application where I have an images folder relative to
I want to use the GridView mode of a ListView to display a set

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.