473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Grouping data on the fly at crystal report

Hi there,

How do i handle grouping same level of data at run time? or any idea?
user can view data according to their selection group on the windows
form.

for example: In customer table, (Group by City) or (Group by Country)
-----------
The following code does not compile...

FieldDefinition myFieldDef = new FieldDefinition();
myFieldDef = rs.Database.Tables["tblCust"].Fields[groupby];
rs.DataDefinition.Groups[2].ConditionField = myFieldDef;

But It doesn't work due to FieldDefination Class at protection level.

Any Idea?

Thanks in advance.

Nov 16 '05 #1
1 2117
Hi Jonathan
f you are to create reports dynamically you can use the Report Designer
component (DRC). There is version 9 available. See this link for its file
requirements

<http://support.businessobjects.com/library/kbase/articles/c2012421.asp>
And here you are the link of to get all available samples on how to use DRC

<http://support.businessobjects.com/c...s/apps_rdc.pdf
..asp>

Here you are also some links that I think could be most helpful

First look at this sample in this link that describes How to create a
Dynamic report using C#. I would say this could be all what you need to
know
<http://support.crystaldecisions.com/...es/csharp_win_
dynamic_report_formula.exe.asp>
If you are using The Microsoft SQL server Database these also are very good
samples

<http://support.crystaldecisions.com/...es/csharp_web_
simplelogonviewer.exe.asp>
<http://support.crystaldecisions.com/...es/csharp_win_
dbengine.exe.asp>
hope this helps
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
7
by: Phin | last post by:
I need your HELP! I've seen all the posts on using Crystal Reports within vs.net (vb.net) and changing a SQL query at runtime. When I tried to pass in a dataset into the crystal report at...
0
by: Irfan | last post by:
I want to ask whether Crystal Report 9 (and DotNet Version of Crystal Report) supports Run-Time customization (Grouping) or not? If it does then how? Also I want to ask whether they support...
2
by: Alpha | last post by:
I have a C# program that user would select several search criteria and then outputs to the Crystal Report. A message is output to user if no matching record is found. In my code I also clear,...
3
by: Diggler | last post by:
I was working on a report that is populated with three different tables in a strongly-typed dataset. The tables are populated from custom objects rather than directly from SQL Server. I loop...
2
by: aldous scotch | last post by:
I designed a Crystal Report .rpt from within Microsoft Development Environment 2003 Version 7.1.3088 (VB .NET IDE). I selected database fields from the left side Field Explorer onto the Details...
3
by: FeveZ | last post by:
I've been stuck on a problem now for ages and i'm about ready to pack my project in because of it lol. OK here is my scenario. I have an existing Crystal Report, which I have added to my...
0
by: Sidney | last post by:
Halu~ I am now creating a report using crystal report and putting it into my VB.NET application. But I meet a problem.. before i use Fox Pro, report format can have data grouping, and the data...
0
by: virendra | last post by:
hi, I am working on crystal report 9 in asp.net. I created multilevel dynamic grouping in CR. if page is load firsttime. and i am giving firstlevel of grouping or whatever it's working fine. but...
5
by: jmar | last post by:
I posted a week ago and received one response. I'm looking for the opinion of several experienced .NET people before I proceed so I'm posting again. Sorry for the repost... I am updating a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.