I am working with mvc and DevExpress trying to force a download of a report that I already have created
I have the following error:
The type or name of the 'Reports' namespace does not exist in the 'BLL.Reportes' namespace (missing any assembly reference?)
My code C#
public ActionResult Test()
{
var report = new BLL.Reportes.SolicitudReporte(); <--- error
var stream = new MemoryStream();
report.ExportToPdf(stream);
var cd = new System.Net.Mime.ContentDisposition
{
FileName = "ReportTest.pdf",
Inline = false,
};
Response.AppendHeader("Content-Disposition", cd.ToString());
return File(stream.ToArray(), "application/pdf");
}
If I am using my reference to my project called "BLL"....
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.