Solved

Is there a way to sort columns in Crystal Report?

Posted on 2008-10-21
8
1,882 Views
Last Modified: 2012-05-05
I would like to sort columns in Crystal Report. Is there anyway?

Thanks
0
Comment
Question by:siddiqishahid
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 22770539
What do you mean?

crystal works on one record at atime.  You can sort the records into any order you want.

Click REPORT --> RECORD SORT EXPERT
Choose the field or fields to sort by

mlmcc
0
 

Author Comment

by:siddiqishahid
ID: 22770665
I meant that, can I click on column header name to sort the data while I am in run mode?
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 200 total points
ID: 22771807
If you have CR2008 you can add controls to the report to sort by a column

If you have CRXI or before then no.

mlmcc
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 26

Assisted Solution

by:Kurt Reinhardt
Kurt Reinhardt earned 200 total points
ID: 22855697
mlmcc is correct in that this is native functionality in Crystal Reports 2008, but not in any previous versions.  That being said, there is a possible workaround:

1)  Create your main report with whatever sort order you want
2)  Save the report
3)  Insert a subreport, using the report file you just created by saving the main report as the basis for the subreport.
4)  Make the subreport an on-demand subreport
5)  Resize the subreport and format it so it looks like a column header, then replace the existing column header with the subreport object.
6)  Repeat this for as many columns as you need.

Please note, while this is a creative approach, there's a caveat that you need to be aware of:

* When you click an on demand subreport, you run that entire report again.  If the report runs almost instantaneously then you've mimiced dynamic sorting. If the report takes a while to process or  is process-intensive, returns a large amount of records, etc... then this workaround is next to worthless.   You'd almost be better off designing the report explicitly for export to Excel.
0
 

Expert Comment

by:pcdev
ID: 22951208
can CRW 2008 sort controls work with drilldown reports too?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22953309
I don't know.  I haven't built many CR2008 reports.

mlmcc
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now