public void OnInitReportOptions(ReportViewerOptions reportOption)
{
byte[] byteArray = null;
if (reportOption.ReportModel.ReportPath.StartsWith("http:/") || reportOption.ReportModel.ReportPath.StartsWith("https:/"))
{
var webClient = new System.Net.WebClient();
try
{
byteArray = webClient.DownloadData(reportOption.ReportModel.ReportPath);
Stream fileStream = new MemoryStream(byteArray);
reportOption.ReportModel.Stream = fileStream;
}
catch (System.Net.WebException webEx)
{
}
}
} |
Thank you so much. Yuvaraj