c# - AspxDocumentViewer XtraReport and empty data -
i'm using xtrareport , aspxdocumentviewer. wrote codes show. i'm taking problem; empty data.
how fix this? can't see what's wrong.
by way "dsmast", it's dataset , there ten rows. still report empty.
string fpth = server.mappath("."); fpth = fpth + "\\report\\rprftrlst22222.repx"; xtrareport report = xtrareport.fromfile(fpth, true); report.datasource = dsmast; report.loadlayout(fpth); report.createdocument(); string reportname = (string)"report"; aspxdocumentviewer1.report = report; aspxdocumentviewer1.databind(); session["reportname"] = reportname;
i fixed problem. first of all, added code page_load
if (session["report2"] != null) { aspxdocumentviewer1.report = session["report2"] xtrareport; } and used thoso codes.
report.datasource = dsmast; report.loadlayout(fpth); report.createdocument(); aspxdocumentviewer1.report = report; aspxdocumentviewer1.databind(); session["report2"] = report; 
Comments
Post a Comment