kapiaba Posted December 20, 2017 Report Share Posted December 20, 2017 Galera, o que mudou na Sefaz São Paulo, que agora não consigo mais visualizar a NF-e pela chave de acesso me retorna esse erro: DESCRICAO DO ERRO: Error BASE/1005 Class: 'NIL' has no property: VALUE FUNCTION ConsultaXmlComChave( cChave ) LOCAL oChildWnd, oDlg, oHttp MsgWait( "CONECTANDO AO PORTAL DA SEFAZ...", ; "AGUARDE UM MOMENTO POR FAVOR... ", 2.5 ) DEFINE DIALOG oDlg FROM 0, 0 TO 600, 900 PIXEL ; TITLE "Consultar a Chave da NF-e na Sefaz" ; COLORS CLR_BLACK, CLR_WHITE TRANSPARENT oDlg:lHelpIcon := .F. ACTIVATE DIALOG oDlg NOWAIT CENTERED oActiveX=TActiveX():New(oDlg,"Shell.Explorer.2",00,0,900,600) oActivex:Silent := .T. oActivex:Navigate2("https://www.nfe.fazenda.gov.br/portal/consulta.aspx?tipoConsulta=completa&tipoConteudo=XbSeqxE8pl8=") oActivex:SetFocus() WHILE oActivex:Busy SysWait(.2) ENDDO oActiveXdo := oActiveX:Document() oHttp := oActiveX:GetProp( "Document" ) // -> Object Document IF Empty( oHttp ) MsgInfo( "Problemas no Site da SEFAZ", ; "Problemas no Site da SEFAZ" ) RETURN( .F. ) ENDIF oActiveXdo:All:Item("ctl00$ContentPlaceHolder1$txtChaveAcessoCompleta",0):Value:=cChave RETURN NIL Quote Link to comment Share on other sites More sharing options...
sistem Posted December 20, 2017 Report Share Posted December 20, 2017 é a consulta do captcha ou do robô? link da consulta antiga => https://www.nfe.fazenda.gov.br/portal/consultaResumoCompletaAntiga.aspx?tipoConsulta=completa&tipoConteudo=XbSeqxE8pl8= consulta nova : oActivex:Navigate2("http://www.nfe.fazenda.gov.br/portal/consultaRecaptcha.aspx?tipoConsulta=completa&tipoConteudo=XbSeqxE8pl8=") oActiveXdo:All:Item("ctl00$ContentPlaceHolder1$txtChaveAcessoCompleta",0):Value:=cChave kapiaba 1 Quote Link to comment Share on other sites More sharing options...
kapiaba Posted December 20, 2017 Author Report Share Posted December 20, 2017 sputnik - Não é mais https? Amanhã eu testo. Many thanks. Cual eres tú nombre Hombre? Quote Link to comment Share on other sites More sharing options...
kapiaba Posted December 21, 2017 Author Report Share Posted December 21, 2017 Many thanks Sputnik, its work perfect! Great Job. Abs. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.