Muhammad Sadiq

Muhammad Sadiq

  • NA
  • 61
  • 13.4k

How to refresh crystal report in visual studio 2019

Aug 20 2019 1:53 PM
I am using visual studio 2019, while displaying crystal report, i am facing problem that report is not refreshing but showing correctly. It only refreshes when I refresh it from report viewer refresh button during runtime. My code is here 
  1. private void PrptViewer_Loaded(object sender, RoutedEventArgs e)   
  2. {  
  3.     PatientReport p = new PatientReport();  
  4.     p.Load(@"PatientReport.rpt");  
  5.     PrptViewer.ViewerCore.ReportSource = p;  
  6.              
  7. }  
If anyone can help me in this regard. 

Answers (4)