Posted 1 July 2019, 3:11 am EST
Good day.
Is it possible to do the following?
I have a pdf file in C: \ PDFS \ Tes.pdf and I need to upload it to a MVC web application through an “ActiveReportsWeb: WebViewer” control.
Is it possible to load the file and deploy it?
I do the following to display reports made in the Active reports editor.
GrapeCity.ActiveReports.SectionReport rpt;
rpt = new MyReport;
rpt.DataSource = ListData;
return PartialView (“WebViewer”, rpt);
In a .aspx file
void Page_Load ()
{
// AR7: load the report to web viewer WebViewer1.Report = Model;
//WebViewer1.Report = (GrapeCity.ActiveReports.SectionReport) ViewData [“Report”];
}
</ script>
<ActiveReportsWeb: WebViewer ID = “WebViewer1” runat = “server” height = “98%” width = “98%” ViewerType = “AcrobatReader” Visible = “true”> </ ActiveReportsWeb: WebViewer>
But what I need is to display a PFD file that I have in a physical path. It’s possible?