Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 January 19th, 2005, 09:12 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default In Crystal Report .net, problem whenlarge records

hi,

when creating reports in asp.net using crystal report .net, i have the following error for large size of records. that is more than 25000 or 40000 or more. even i need 2 lakhs records also.
i dont know how to solve the problem.
can u solve my problem please.

 ************************************************** ************************************
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the system event log of the web server. Please review this log entry to discover what caused this error to occur.

in event viewer the error is.........

aspnet_wp.exe (PID: 1740) was recycled because memory consumption exceeded the 76 MB (60 percent of available RAM).

or

aspnet_wp.exe (PID: 448) was recycled because it was suspected to be in a deadlocked state. It did not send any responses for pending requests in the last 180 seconds.

***********************************************

my coding is

           Dim intyearmonth As String
            Dim fromdate As String = txtFromDate.Value.ToString
            intyearmonth = Mid(fromdate, 7, 10) & Mid(fromdate, 4, 2)

            strsql = "select LM.smis_region,LM.smis_stateName,LM.smis_city,LM.s mis_level,LM.smis_locationcode, " _
                    & " SM.Yearmonth, SM.ProductCode, SM.Totalqty, SM.GrossWeight, SM.StockValue, LM.smis_location smis_locationname,smis_LocationCategory" _
                    & " from smis_summary_stock SM,smis_Locationmaster LM" _
                    & " where SM.Locationcode = LM.smis_locationcode" _
                    & " and SM.yearMonth = " & intyearmonth & " " _
                    & " " & WhereCondition & "" _
                    & " Order By 1"

              'call export report
            Try
                Dim ds As New dsStockReport()
            Dim daStockReport As SqlDataAdapter = New SqlDataAdapter(strsql, objConn)
                daStockReport.Fill(ds, "StockReport")
                orpt = New rptLogin()
                orpt.SetDataSource(ds)

                Dim myreport As rptLogin = orpt

                'Input Paramenters
                orpt.DataDefinition.FormulaFields(21).Text = "'" & Heading & "'"

                Dim logincode = "-Admin"
                Dim ExportFileName = Session("Heading") & logincode.ToString & ".xls"
                destfile.DiskFileName = Server.MapPath("Export") & "\" & ExportFileName
                Call OpenWindows("Export\\" & ExportFileName, "_Blank")
                'destfile.DiskFileName = "C:\\" & ExportFileName
                Exportoption = myreport.ExportOptions
                With Exportoption
                    .ExportDestinationType = .ExportDestinationType.DiskFile
                    '.ExportFormatType = .ExportFormatType.PortableDocFormat
                    .ExportFormatType = .ExportFormatType.Excel
                    .DestinationOptions = destfile
                    .FormatOptions = formatoptions
                End With
                myreport.Export()

            Catch ex As Exception
                Response.Write(ex.Message & "" & ex.StackTrace)
            End Try
            Heading = ""



this coding is working for small amount of records.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report problem in ASP.Net aliirfan84 ASP.NET 2.0 Professional 0 July 11th, 2007 02:11 AM
Crystal Report Problem with ASP.Net 2.0 aliirfan84 ASP.NET 2.0 Professional 1 June 17th, 2007 01:39 AM
problem with crystal report in asp.net 1.1 robyjoseph ASP.NET 1.0 and 1.1 Professional 0 February 20th, 2007 01:27 AM
Problem in using Crystal report with asp.net sKavita ASP.NET 1.0 and 1.1 Professional 0 November 7th, 2006 02:48 AM
Problem in Crystal Report in VS.NET 2005 SaeedNawazMalik .NET Framework 2.0 1 March 4th, 2006 03:59 PM





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