473,657 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Tab les["tblCust"].Fields[groupby];
rs.DataDefiniti on.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 2124
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.busines sobjects.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_
simplelogonview er.exe.asp>
<http://support.crystaldecisions.com/...es/csharp_win_
dbengine.exe.as p>
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
19160
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 Report at runtime? Example: private void button1_Click(object sender,
7
4007
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 runtime, the report still showed the results from the default query (from within the Crystal Report). Then I tried the XSD solution where you define a dataset (that mataches the database and the Crystal Report) and have the Crystal Report use this....
0
1082
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 drill down charting or not? If it does then how? Regards, Irfan
2
3100
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, removed and dispose of the table in the dataset that was used which should have nothing in it any way. I then clean up the search string that I built at run time. Now in the same screen, user change one of the search criteria and now there are...
3
5235
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 through the objects and add the rows one at a time. I then push the dataset to the Crystal Report. The report worked fine, until this morning. I added another field or two to the dataset, and rearranged the report fields to organize the report...
2
3065
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 (Section3) of the .rpt. Also, I added a new web form myWebform.aspx and a web object CystalReportViewer - CrystalReportViewer1 and had a code behind in ReportSource
3
9187
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 solution and published it as a webservice. This report takes it data from an SQL server on another machine. The user will have a windows form in a little app i'm writing where it has a
0
1020
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 grouping expression can using some simple condition, eg. IIF(cond1, true,false) As I know Crystal report have this function also, but if the condition need to call the combo box value in window form.. how can I do that?
0
1399
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 once page is loaded and i am changing the grouping options it's not affecting the page. whatever the previous data in report that only is showing. but it's exporting properly in excel file. So it can be a problem of cache.
5
3730
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 VB4.0 quote generation program to VB.net. The old program takes user inputs, performs calculations, saves the data to Access databases and uses Crystal Reports 5.0 to generate a quote. A while back users obviously wanted to be able to edit/e-mail ...
0
8411
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8323
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8838
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8613
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7351
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.