Ir para conteúdo
  • Cadastre-se

dev botao

Erro impressão DANFE em PDF ACBRLib


Ver Solução Respondido por Leonardo Fabro da Rocha,
  • Este tópico foi criado há 1614 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

private void loadConfig() {
        try {
            acbrNFe.configLer();
            cmbModeloDocumento.setSelectedIndex(Integer.parseInt(acbrNFe.configLerValor(ACBrSessao.NFe, "ModeloDF")));
            txtIdCSC.setText(acbrNFe.configLerValor(ACBrSessao.NFe, "IdCSC"));
            txtCSC.setText(acbrNFe.configLerValor(ACBrSessao.NFe, "CSC"));
            cmbCrypt.setSelectedIndex(Integer.parseInt(acbrNFe.configLerValor(ACBrSessao.DFe, "SSLCryptLib")));            
            cmbHttp.setSelectedIndex(Integer.parseInt(acbrNFe.configLerValor(ACBrSessao.DFe, "SSLHttpLib")));    
            cmbXmlSign.setSelectedIndex(Integer.parseInt(acbrNFe.configLerValor(ACBrSessao.DFe, "SSLXmlSignLib")));
            txtCertPath.setText(acbrNFe.configLerValor(ACBrSessao.DFe, "ArquivoPFX"));
            txtCertPassword.setText(acbrNFe.configLerValor(ACBrSessao.DFe, "Senha"));
            txtCertNumero.setText(acbrNFe.configLerValor(ACBrSessao.DFe, "NumeroSerie"));
            txtSchemaPath.setText(acbrNFe.configLerValor(ACBrSessao.NFe, "PathSchemas"));
            cmbUfDestino.setSelectedItem(acbrNFe.configLerValor(ACBrSessao.DFe, "UF"));
            
            String ambiente = acbrNFe.configLerValor(ACBrSessao.NFe, "Ambiente");            
            rdbHomologacao.setSelected("1".equals(ambiente));
            rdbProducao.setSelected("0".equals(ambiente));
                        
            cmbSSlType.setSelectedIndex(Integer.parseInt(acbrNFe.configLerValor(ACBrSessao.NFe, "SSLType"))); 
            nudTimeOut.setValue(Integer.parseInt(acbrNFe.configLerValor(ACBrSessao.NFe, "Timeout")));
            txtProxyServidor.setText(acbrNFe.configLerValor(ACBrSessao.Proxy, "Servidor"));
            String Value = acbrNFe.configLerValor(ACBrSessao.Proxy, "Porta");
            if(Value.matches("-?\\d+"))
                nudProxyPorta.setValue(Integer.parseInt(Value));
            txtProxyUsuario.setText(acbrNFe.configLerValor(ACBrSessao.Proxy, "Usuario"));
            txtProxySenha.setText(acbrNFe.configLerValor(ACBrSessao.Proxy, "Senha"));
            txtNome.setText(acbrNFe.configLerValor(ACBrSessao.Email, "Nome"));
            txtEmail.setText(acbrNFe.configLerValor(ACBrSessao.Email, "Conta"));
            txtUsuario.setText(acbrNFe.configLerValor(ACBrSessao.Email, "Usuario"));
            txtSenha.setText(acbrNFe.configLerValor(ACBrSessao.Email, "Senha"));
            txtHost.setText(acbrNFe.configLerValor(ACBrSessao.Email, "Servidor"));
            Value = acbrNFe.configLerValor(ACBrSessao.Email, "Porta");
            if(Value.matches("-?\\d+"))
                nudPorta.setValue(Integer.parseInt(Value));          
            ckbSSL.setSelected(acbrNFe.configLerValor(ACBrSessao.Email, "SSL").equals("1"));            
            ckbTLS.setSelected(acbrNFe.configLerValor(ACBrSessao.Email, "TLS").equals("1"));

        } catch (Exception ex) {
            Logger.getLogger(FrmMain.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

 

Segue em anexo os demais arquivos solicitados.

 

Obrigado.

 

 

image.png

LOG.log

Link para o comentário
Compartilhar em outros sites

  • Este tópico foi criado há 1614 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.
Visitante
Este tópico está agora fechado para novas respostas
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.