Refresh ReportDocument

M

Meena

Hi every Body,
I am using Crystal Reports with vb.net interacting with front end
every thing fine, I still Have a doubt of the report is refreshing
really or not.

Dim crReportDocument As New
rystalDecisions.CrystalReports.Engine.ReportDocument
Dim strRecodSelectionFormula As String

crReportDocument.Load("Report1.rpt")

''''passing some strings to edit recordselection formulae,

crReportDocument.RecordSelectionFormula = strRecodSelectionFormula
crReportDocument.Refresh()
CrystalReportViewer1.ReportSource = crReportDocument

The above I am doing is refreshing reportdocument and not the report
directly,
Is it refreshing Really.


Early Repliey is greatly appreciated.

Thank you,
Regards
meena.
 
A

Armin Zingler

Meena said:
Hi every Body,
I am using Crystal Reports with vb.net interacting with front end
every thing fine, I still Have a doubt of the report is refreshing
really or not.

Dim crReportDocument As New
rystalDecisions.CrystalReports.Engine.ReportDocument
Dim strRecodSelectionFormula As String

crReportDocument.Load("Report1.rpt")

''''passing some strings to edit recordselection formulae,

crReportDocument.RecordSelectionFormula = strRecodSelectionFormula
crReportDocument.Refresh()
CrystalReportViewer1.ReportSource = crReportDocument

The above I am doing is refreshing reportdocument and not the
report directly,
Is it refreshing Really.

Does it help to remove and add the reportsource again?

CrystalReportViewer1.ReportSource = Nothing
CrystalReportViewer1.ReportSource = crReportDocument


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
M

Meena

Hi Armin,
Thank You for ur Sugession,Yes it's defenitely helps me.It kills the
loaded report and reloads again.But I have to consider abt the speed
of it when reloading again.

On the MSDN Documentation its saying the below....

Refresh --- Reloads and displays the report from its original source.

I just wanted to made some changes in database records manually to
check weather the changes are reflecting when refresh method applying
,if it's not updating I will go with the sugession what U have
given.Ofcourse I should have test it before posting my
question.Thanks again for your Reply.

Regards,
Meena.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top