cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports Sort different on server vs Visual Studio

Former Member
0 Kudos

We are coding many reports in Crystal using the Visual Studio 2010 plug in. We're hosting the web application on Win Server 2008 Enterprise 64bit. We use SQL to sort the data being sent to the report.

The issue: On some reports the order is different on the server than when developing using VS. We're hitting the same DB in both cases and have confirmed that the data table being passed to the report is the same in both cases. We've confirmed that the DLLs are the same between the environments. We have a workaround which is to dictate the sort in the report. That seems like overkill.

Any ideas?

Thanks ST

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hello Paul

A few things to try:

1) Make sure you are using SP 5 for CRVS

2) Enable the options "Verify on 1st Refresh" and "Verify Stored Procedure on 1st Refresh"

3) Install CR designer on the problem computer and see what happens there. This will only work if the datasource is 32 bit... An eval of CR 2011 can be downloaded from here:

http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx

- Ludek

Senior Support Engineer AGS Primary Support, Global Support Center Canada

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

Thank you.  Is there a service pack 5 available for the server installation?  We running Windows Server 2008 64 bit.

Option number 2 may not apply to us since we're not calling procedures from within the report.  We're passing a data table to the report.

Option 3 is out since we're in a  64 bit development and server environment.

former_member183750
Active Contributor
0 Kudos

Yes there is SP 5 for server installation. See the link to the 64 bit MSI in the doc I linked to in my previous post.

I'd like you to still try option (2) irrespective of tables, SPs or datasets. It will certainly not hurt.

- Ludek

Former Member
0 Kudos

None of these corrected the issue.  This issue is very worrysome.  The only difference that I can find between the two environments is the operating system.  I'm concerned that there will be sorting issues when we deploy to a production server.  Do you have any other ideas?

Thanks for your efforts

former_member183750
Active Contributor
0 Kudos

Hello Paul

Let me go back to one of your previous posts where you say:

We're passing a data table to the report.

Do you mean ADO .NET Dataset?

- Ludek

Former Member
0 Kudos

I believe so.  We're using Report.setSetDataSource(DataTable from stored procedure).

We've looked at the data table in both environments and have confirmed that it is ordered the same way.

Former Member
0 Kudos

Confirmed:

DataTable reportData = null;

ReportDocument report = null;

// Assign report data

reportData = service.GetReportData();

// Set data source

report.SetDataSource(reportData);

Answers (0)