OpenXml 单元格合并后Word打开提示错误

public static OutputStream creatWord(ArrayList<String> imageUrllist,String[] names,OutputStream os) {
    int imageSize = imageUrllist.size();
    try {
        //word模板的路径
        CustomXWPFDocument doc = new CustomXWPFDocument(new FileInputStream(templePath+"exp.docx"));
        Iterator<XWPFTable> it = doc.getTablesIterator();  
        while(it.hasNext()){  
            XWPFTable table = it.next();  
            List<XWPFTableRow> rows = table.getRows(); 
            int num = 0;
            for(int i =0;i<rows.size();i++){  
                List<XWPFTableCell> cells = rows.get(i).getTableCells();  
                for(int j=0;j<cells.size();j++){
                    //num+1
                    num++;
                    if(num <= imageSize){
                        CustomXWPFDocument docTemp = ExpWordUtil.addPic(imageUrllist.get(2*i+j), doc, cells.get(j), 2*i+j+1, names[2*i+j]);
                        doc = docTemp!=null?docTemp:doc;
                    }else{
                        cells.get(j).removeParagraph(0); 
                    }
                    List<XWPFParagraph> pars = cells.get(j).getParagraphs();  
                    for(XWPFParagraph par:pars){  
                        List<XWPFRun> runs = par.getRuns();  
                        for(XWPFRun run:runs){  
                            run.removeBreak();  

                        }  
                    }  
                }  
            }  
        }
        doc.write(os);
        os.flush();
        os.close();
        return os;
    }  catch (FileNotFoundException e) {
        e.printStackTrace();
    } catch (InvalidFormatException e) {
        e.printStackTrace();
    } catch (IOException e) {
        e.printStackTrace();
    }
    return null;
}

发现是Excel版本问题