To view Crystal Report in ASP.NET C# -
i've crystal reports store on file-share, want read file using asp.net(c#) webpage. want create exe file when user clicks on crystal report stored on file-share, should open in browser using asp.net(c#) webpage.
so tried creating simple asp.net(c#) app open report local machine, wrote below mentioned code
using system; using system.collections; using system.linq; using system.web; using system.web.ui; using system.web.ui.webcontrols; using system.data.sqlclient; using system.data; using system.configuration; using system.web.configuration; using system.web.ui.webcontrols.webparts; using system.web.ui.htmlcontrols; using crystaldecisions.enterprise; using crystaldecisions; using crystaldecisions.crystalreports.engine; namespace readcrystalreport { public partial class _default : system.web.ui.page { protected void page_load(object sender, eventargs e) { try { reportdocument r = new reportdocument(); r.load(server.mappath("~/crystalreportviewer1.rpt")); crystalreportviewer1.reportsource = r; } catch (exception ex) { throw ex; } } }
but when run , blank page in browser no error nothing shown, please me. i'm using visual studio 2013 crystal report runtime v12...(as reports created in same version)
thanks, ajit mishra.
i think may issue: crystal report doesnt display in asp.net webpage build using vs 2013
Comments
Post a Comment