Generate Danfe from NFe XML [closed]

5

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?

    
asked by anonymous 27.01.2016 / 11:00

1 answer

3

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

    
27.01.2016 / 11:59