Skip to content

danielbohnrs/danfe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

danfe

Exemplo de uso:

String xmlNota ="<nfeProc...";
NFDanfeReport danfe = new NFDanfeReport(xmlNota);
byte[] logo = null;
if (modelo.equals("65"))
	JasperPrint jasper = danfe.createJasperPrintNFCe(
    			logo,	
    			nota.getNota().getInfo().getIdentificacao().getAmbiente()==DFAmbiente.HOMOLOGACAO ? nota.getNota().getInfo().getIdentificacao().getUf().getQrCodeHomologacao() :
    			nota.getNota().getInfo().getIdentificacao().getUf().getQrCodeProducao(),
    			nota.getNota().getInfoSuplementar().getQrCode(),    				
    				
    				nfe.getChave(), 
    				nota.getNota().getInfo().getIdentificacao().getAmbiente()==DFAmbiente.HOMOLOGACAO,
    				"",
    				false,
    				pgtos);
else
	JasperPrint jasper = danfe.createJasperPrintNFe(logo);
byte[] byteArray = JasperExportManager.exportReportToPdf(jasper);

About

Impressão da NF-e e NFC-e a partir do XML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages