Olha o código em Visual Fox pro:
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAção, ;
STRING cNomeArquivo, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
TRY
oExceptionInterop = CreateObject( "Unimake.Exceptions.ThrowHelper" )
oUnidanfeConfiguration = CreateObject("Unimake.Unidanfe.Configurations.UnidanfeConfiguration")
oUnidanfeConfiguration.WaitProcess = .F.
oUnidanfeConfiguration.Arquivo = "C:\Emporium\Versao27\NFSE\33047062244505354000163000000000006226010554943111.xml"
oUnidanfeConfiguration.Visualizar = .T.
oUnidanfeConfiguration.Imprimir = .F.
oUnidanfeConfiguration.EnviaEmail = .F.
* Disparar a impressao DANFe NFe
oUnidanfeServices = CreateObject("Unimake.Unidanfe.UnidanfeServices")
oUnidanfeServices.Execute(oUnidanfeConfiguration) && Troquei para o nome do arquivo para 50 caracteres esta me retornando outro erro
XML do tipo desconhecido
Conteudo do xml:
<DPS xmlns="
http://www.sped.fazenda.gov.br/nfse" versao="1.01">
<infDPS Id="DPS330470624450535400016300900000000000000062">
<tpAmb>1</tpAmb>
<dhEmi>2026-01-13T14:35:44-03:00</dhEmi>
<verAplic>EmissorWeb_1.1.0.4</verAplic>
<serie>900</serie>
<nDPS>62</nDPS>
<dCompet>2026-01-13</dCompet>
<tpEmit>1</tpEmit>
<cLocEmi>3304706</cLocEmi>
<prest>
<CNPJ>44505354000163</CNPJ>
<regTrib>
<opSimpNac>2</opSimpNac>
<regEspTrib>0</regEspTrib>
</regTrib>
</prest>
<toma>
<CPF>00499349709</CPF>
<xNome>CAUBY VIEGAS OSORIO</xNome>
<end>
<endNac>
<cMun>3304706</cMun>
<CEP>28470000</CEP>
</endNac>
<xLgr>RUA MANAUS</xLgr>
<nro>123</nro>
<xBairro>ALPHAVILLE</xBairro>
</end>
</toma>
<serv>
<locPrest>
<cLocPrestacao>3304706</cLocPrestacao>
</locPrest>
<cServ>
<cTribNac>010101</cTribNac>
<xDescServ>Manutencao de Software</xDescServ>
<cNBS>115022000</cNBS>
</cServ>
</serv>
<valores>
<vServPrest>
<vServ>8.00</vServ>
</vServPrest>
<trib>
<tribMun>
<tribISSQN>1</tribISSQN>
<tpRetISSQN>1</tpRetISSQN>
</tribMun>
<totTrib>
<indTotTrib>0</indTotTrib>
</totTrib>
</trib>
</valores>
</infDPS>
</DPS>
é o que eu gera para enviar
Salvo engano esta chave tem 50 posições
1 2 3 4 5
12345678901234567890123456789012345678901234567890
33047062244505354000163000000000006126016089091851
To view this discussion visit
https://groups.google.com/d/msgid/uninfe/CAOxpjY1NnNwG5ayTi_JXk-bKFgYFCd%2By91d2LQUii-_KUgqMxw%40mail.gmail.com.