title: How to use DataSources and DataSets in LocalReport
body: <p>My company is going to use Azure environment for future applications. However, currently, Azure does not allow us to deploy reports to Azure SQL Server. Therefore, the only way to show report is using local ReportViewer.</p>
  
  <p>My job is to write a <strong>reporting engine</strong> that using local ReportViewer to show the report. However, I am facing difficulties about using DataSources and DataSets information in the RDLC file.</p>
  
  <p>Challenge 1: <code>LocalReport.LoadReportDefinition()</code> method does not retrieve DataSources and DataSets information. How can I get DataSources and DataSets information from RDLC file?</p>
  
  <p>Challenge 2: After I get DataSources and DataSets information, how can I use those information to generate DataSet? Although I could phase the DataSources and DataSets information by XML processes, but it is so hard to handle all cases myself.</p>
  
  <p>In simple words, I am trying to simulate the getting data process in server side but using local report.</p>
  
  <p>Thank you so much!</p>