45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




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.

Asp.net - refresh the crystal report data from ASP.Net

        

Reply
 
LinkBack Thread Tools Display Modes
Old 25-01-07, 05:24 PM   #1 (permalink)
Junior Member
 
preethisingh's Avatar
 
Join Date: Jul 2006
Posts: 1,391
Thanks: 1
Thanked 28 Times in 25 Posts
Rep Power: 19 preethisingh is a jewel in the rough preethisingh is a jewel in the rough preethisingh is a jewel in the rough
Asp.net - refresh the crystal report data from ASP.Net

How to refresh the crystal report data from ASP.Net

preethisingh is offline Offline   Reply With Quote
Old 11-04-08, 11:53 AM   #2 (permalink)
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 i_akbaransari is on a distinguished road
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.
i_akbaransari is offline Offline   Reply With Quote
Old 28-01-09, 12:42 PM   #3 (permalink)
Junior Member
 
Join Date: Jan 2009
Age: 24
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 1 dashah_323 is on a distinguished road
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.
dashah_323 is offline Offline   Reply With Quote
Old 28-01-09, 12:44 PM   #4 (permalink)
Junior Member
 
Join Date: Jan 2009
Age: 24
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 1 dashah_323 is on a distinguished road
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;
dashah_323 is offline Offline   Reply With Quote
Reply

Tags
aspnet , crystal , data , refresh , report


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +6.5. The time now is 11:11 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0