Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 10th, 2008, 12:33 AM
Authorized User
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crstal Report Genrated

Hi ,
I hv Generated Crystal Report .
Im Exporting it in ms Excel.
Everything is proper But there is prblem i m not able to sort excel sheet.
Can any one Help Me Plz.
Regards,
Pradeep yadav

 
Old October 10th, 2008, 06:27 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Do you have any more information besides "not able to sort excel sheet"?

What are the symptoms? Is the all of the data from your CR report being exported as text thus making a numeric sort a bit difficult?

Please elaborate.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old October 13th, 2008, 01:16 AM
Authorized User
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I hv use Following Code to Export

        objRevRptDoc.Load(@"C:\Pradeep\RevenueReport\Repor ts\RevenueReport.rpt");
        objRevRptDoc.SetDataSource(Ds.Tables["ReportData"]);

        objRevRptDoc.SetParameterValue("paraFrmDate", txtDtFrm.Text.Trim());
        objRevRptDoc.SetParameterValue("paraToDate", txtDtTo.Text.Trim());
        objRevRptDoc.SetParameterValue("paraLoc", ddlLocation.Text.Trim());
        objRevRptDoc.SetParameterValue("paraFun", ddlFunction.Text.Trim());
        objRevRptDoc.SetParameterValue("paraPartner", txtPartner.Text.Trim());
        objRevRptDoc.SetParameterValue("paraMgr", txtMgr.Text.Trim());
        objRevRptDoc.SetParameterValue("paraPrj", txtPrj.Text.Trim());
        objRevRptDoc.SetParameterValue("paraClient", txtClient.Text.Trim());
        objRevRptDoc.SetParameterValue("paraPrjSubFun", ddlPrjSubFun.SelectedItem.Text.Trim());

        RevCrysalRptViewer.ReportSource = objRevRptDoc;

        System.IO.MemoryStream revStream;
       revStream = (System.IO.MemoryStream)objRevRptDoc.ExportToStrea m(CrystalDecisions.Shared.ExportFormatType.Excel);
       // revStream = (System.IO.MemoryStream)objRevRptDoc.ExportToStrea m(CrystalDecisions.Shared.ExportFormatType.RichTex t);
        Response.Clear();
        Response.Buffer = true;
         Response.ContentType = "application/vnd.ms-excel";
        //Response.ContentType = "application/rtf";

        Response.BinaryWrite(revStream.ToArray());
        Response.End();

 
Old October 13th, 2008, 07:37 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You didn't answer my questions:

Do you have any more information besides "not able to sort excel sheet"?

What are the symptoms?


When you try to sort in excel what is happening?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old October 14th, 2008, 05:01 AM
Authorized User
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default


SomeTimes it does not Enable oprtion of Sorting

This is the Error Im m getting trying to Sort it.

This error only appears if you attempted to sort a range of previously merged cells, but not all cells in the sort range were merged or are not of the same size.
To avoid this behavior, unmerge all the merged cells in the range, or merge all the cells in the range to be the same as the largest merged cell grouping.


 
Old October 14th, 2008, 07:23 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmm. I had this problem working with RDLC files but was able to rectify the problem by modifying how the report was bound to its data source and how it was displayed.

The only help that I can offer is to identify the offending cells and try to modify your report so that you don't have a series of merged and un-merged cells.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
reset links main-report to sub-report from c#.net epanyun Crystal Reports 0 April 18th, 2008 02:41 AM
how can i add report to report viewer in asp.net wael_e BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 February 19th, 2008 03:19 PM
Login fail Err when view report on Report Server dillig BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 22nd, 2004 05:31 AM
How to load a Web Server report into a Report Doc dshadle Crystal Reports 3 September 30th, 2003 03:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.