Solved

Is there a way to sort columns in Crystal Report?

Posted on 2008-10-21
8
1,888 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 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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