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; 

enter image description here

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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -