I'm developing a ASP.NET MVC
application with C#
and need to transform XML
of NF-e to Danfe in PDF
, does anyone know any component for this?
I'm developing a ASP.NET MVC
application with C#
and need to transform XML
of NF-e to Danfe in PDF
, does anyone know any component for this?
In a simple Google search I found Danzor , it seems to do exactly what you need.
To install it, open the Package Manager Console and type
PM > Install-Package Danzor
In your controller create an instance of DanzorPrintViewr by passing the path where the NFe XML is
public ActionResult Danfe()
{
var model = new DanzorPrintViewer("<<caminho do arquivo>>");
return View("~/Views/Danfe/Danfe.cshtml", model);
}
Example taken from component site