ASP.NET/VB.NET Generating RDLC gives Useless Error of just the Dataset Name -
i've tried every different code example of programmatically generating pdf rdlc report. every single 1 gives me generic "an error occurred during local report processing" on render step. when check inner exception, useless error ever, name of dataset: "dataset1". that's it. i'm running web app locally , using connection string website report. report uses single table source. it's vanilla can be. here's 1 example of code generates error, i've tried many other similar examples same resulting error.
dim rv new reportviewer dim warnings warning() dim streamids string() dim mimetype string dim encoding string dim filenameextension string try rv.localreport.reportpath = "reports/myreport.rdlc" dim bytes byte() = rv.localreport.render("pdf", nothing, mimetype, encoding, filenameextension, streamids, warnings) using fs new filestream("output.pdf", filemode.create) fs.write(bytes, 0, bytes.length) end using catch ex exception end try
Comments
Post a Comment