Jump to content
Fivewin Brasil

Função para imprimir NFC-e na daruma DR-700 L/LP


mkyx

Recommended Posts

Pessoal, a função abaixo imprime o NFC-e numa impressora DR-700

Esta definição está em delphi: (copiado do site: www.desenvolvedoresdaruma.com.br)

function iCFImprimir_NFCe_Daruma(StrPathXMLVenda:String; StrPathRetornoWS:String; StrLinkQrCode:String; iNumColunas:Integer; iTipoNF:Integer): Integer; StdCall; External 'DarumaFramework.dll';

Convertida para Fivewin, ficou assim:

DLL32 Function iCFImprimir_NFCe_Daruma(StrPathXMLVenda AS STRING, StrPathRetornoWS AS STRING, StrLinkQrCode AS STRING, iNumColunas AS _INT, iTipoNF AS _INT) AS LONG PASCAL LIB hDllDARUMA

como faço:
hDllDaruma := LoadLibrary( "DarumaFrameWork.dll" )
// cFileXml = contém o xml da nfc-e
// URL = contém as informações do QR-Code
Int_Retorno:=iCFImprimir_NFCe_Daruma(cFileXml,'',URL,48,1)
Quando a execução passa por esse comando, o computador trava.
Será que a declaração da função iCFImprimir_NFCe_Daruma, que fiz em fivewin, está errada?
Alguém saberia me dizer?
Obrigado
Pompeo
Link to comment
Share on other sites

Bom dia,

Passe a URL em branco também, ou seja, informe assim:

StrPathXMLVenda := 'nome do xml'
StrPathRetornoWS := ''
StrLinkQrCode := ''
iNumColunas := 48
iTipoNF := 1

iRetorno := iCFImprimir_NFCe_Daruma( StrPathXMLVenda,;
StrPathRetornoWS,;
StrLinkQrCode,;
iNumColunas,;
iTipoNF )

Assim vai funcionar corretamente.

[]´s
Luiz Augusto

São Jose dos Pinhais, PR

Fivewin + xharbour

Link to comment
Share on other sites

Boa noite,

O comando emite a DANFE da NFCe usando o xml da nota já emitida, seja xml padrão sefaz ou daruma/migrate, o codigo CSC já foi passado no momento da emissão da nota, ou seja, pra emitir a DANFE da NFCe, voce só precisa informar o nome do xml.

[]´s

Luiz Augusto

São José dos Pinhais - PR

Fivewin + xharbour

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...