Solved

Is there a way to sort columns in Crystal Report?

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

Thanks
0
Comment
Question by:siddiqishahid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 101

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 101

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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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 101

Expert Comment

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

mlmcc
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 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