![]() |
|
| vb / asp.net Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too. |
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: Jul 2006
Posts: 1,391
Thanks: 1
Thanked 28 Times in 25 Posts
Rep Power: 19 | Asp.net - refresh the crystal report data from ASP.Net How to refresh the crystal report data from ASP.Net |
| | |
| | #2 (permalink) |
| Junior Member Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 | Re: Asp.net - refresh the crystal report data from ASP.Net Hi u have to use Dynamic Data Set. and pass it to the report. |
| | |
| | #3 (permalink) |
| Junior Member Join Date: Jan 2009 Age: 24
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 1 | Re: Asp.net - refresh the crystal report data from ASP.Net Try to use following code : <meta http-equiv="refresh" content="1"> within ur <head>. This would refresh the whole page.To avoid this ,you could embed your page with the report in an iframe and then embed that iframe in your "outer" page.That way, you can refresh the inner page with just the report, while the main page remains. The problem here would be that when the embedded page refreshes the browser,it would show the progress bar in the status bar and the whole page shows a flicker which is same as if the whole page (outside page) is refreshed. For that ,use refresh code and this in iframe header. <meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=0.0)"> <meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=0.0)"> That way , we can get a smoother effect. |
| | |
| | #4 (permalink) |
| Junior Member Join Date: Jan 2009 Age: 24
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 1 | Re: Asp.net - refresh the crystal report data from ASP.Net The behavior is fine. What you might want to consider though is caching the report document in a session variable so you don't need to reload from scratch with every postback. The basic code (in page_load) looks something like this (I use vb not c# so my code won't be right on the money): ReportDocument report; if not Page.IsPostBack then report = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); report.Load(Server.MapPatch("cr1.rpt")); report.SetDataSource((DataTable)dt); Session("MyReport") = report else report = Session("MyReport") end if CrystalReportViewer1.ReportSource = report; |
| | |
![]() |
| Tags |
| aspnet , crystal , data , refresh , report |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mega Free Download S/W Links A-Z | yathish | OTHERS | 516 | 21-03-09 10:06 AM |
| interview Q&A asked in winrunner | Spoorthi | Testing Tools & QA | 80 | 22-11-08 11:48 PM |
| 4C Solutions Pvt Ltd Hiring Data Analyst | sridhar | Experienced Jobs | 0 | 25-10-06 01:10 AM |
| hi... | gomesh_2k6 | VB / ASP.NET Technologies | 2 | 30-09-06 01:20 PM |
| ejb | bujjimadhu | JAVA Technologies | 4 | 10-09-06 09:15 PM |
| More Interview Questions Here... |