Solved

Is there a way to sort columns in Crystal Report?

Posted on 2008-10-21
8
1,886 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports Groups need Hand Cursor on Hover 4 79
Speed Up Crystal Report 5 61
Crystal Reports No Record Returned 2 60
Crystal report highlighting 5 44
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. …
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 …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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