Ir para conteúdo
Fórum Script Brasil
  • 0

JXL


Gutemberg Lucas

Pergunta

Como faço pra alterar um arquivo xls que esteja com programação vb abilitada ou seja uma planilha dinamica com jxl-java.

Consegui alterar dados dentro de uma planilha normal que não esteja com macro, porem quando vou tentar alterar uma planilha que tenha macro com mesma estenção ocorre o seguinte problema :

Warning: Usage of a local non-builtin name

Warning: MS Office Drawing Object on sheet "Teste" not supported - omitting

Warning: escher atom getData called on object of type jxl.biff.drawing.EscherAtom code 0

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at jxl.biff.DVParser.<init>(DVParser.java:669)

at jxl.biff.BaseCellFeatures.getDVParser(BaseCellFeatures.java:501)

at jxl.write.biff.SheetWriter.writeDataValidation(SheetWriter.java:1137)

at jxl.write.biff.SheetWriter.write(SheetWriter.java:581)

at jxl.write.biff.WritableSheetImpl.write(WritableSheetImpl.java:1558)

at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:950)

at CONDIFSYS.Teste.Escreve_e_Fecha_o_arquivo(Teste.java:49)

at CONDIFSYS.Teste.jButton1ActionPerformed(Teste.java:113)

at CONDIFSYS.Teste.access$000(Teste.java:19)

at CONDIFSYS.Teste$1.actionPerformed(Teste.java:86)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

at java.awt.Component.processMouseEvent(Component.java:6263)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

at java.awt.Component.processEvent(Component.java:6028)

at java.awt.Container.processEvent(Container.java:2041)

at java.awt.Component.dispatchEventImpl(Component.java:4630)

at java.awt.Container.dispatchEventImpl(Container.java:2099)

at java.awt.Component.dispatchEvent(Component.java:4460)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

at java.awt.Container.dispatchEventImpl(Container.java:2085)

at java.awt.Window.dispatchEventImpl(Window.java:2478)

at java.awt.Component.dispatchEvent(Component.java:4460)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152k
    • Posts
      651,7k
×
×
  • Criar Novo...