你好,
bobokong(寻找编程的乐趣) 
你也在呀,
能帮我解决一下么

解决方案 »

  1.   

    大家帮我解决一下呀:
    就是这段有问题呀,
    int iOK=oEreport.executeUpdate(out);//这个地方好像不对但我不知该怎么改呀,
                                    if(iOK==1){
                                    JOptionPane.showMessageDialog(null, "保存成功!", "恭喜成功!",JOptionPane.INFORMATION_MESSAGE);
                                    }
                                    else{
                                      JOptionPane.showMessageDialog(null, "保存失败!", "错误失败!", JOptionPane.ERROR_MESSAGE);
                                    }
                          
      

  2.   

    oEreport.executeUpdate(out)
    这种好像只对sql语句有用吧
      

  3.   

    out.write( text );
    out.close();
    这两句话执行以后,如果没有抛错,应该存盘成功了
    试一试这样吧,将提示错误的信息放在catch中
    .
    .
    .
    out.write( text );
    out.close();

    // Display the name of the saved directory+file in the statusBar.
    System.out.println( currFileName );
    //int iOK=oEreport.executeUpdate(out);
    if (currFileName.isExist())
             JOptionPane.showMessageDialog(null, "保存成功!", "恭喜成功!",JOptionPane.INFORMATION_MESSAGE);
            else
             JOptionPane.showMessageDialog(null, "保存失败!", "错误失败!", JOptionPane.ERROR_MESSAGE);
    }
    catch (IOException el) {
    el.printStackTrace();
    JOptionPane.showMessageDialog(null, "保存失败!", "错误失败!", JOptionPane.ERROR_MESSAGE);
    }
    .
    .
    .