-
2021-03-17 10:04:01
FreeMaker 导出自定义样式word (SpringBoot)图片、文本块、集合循环(详细教程)
地址:https://blog.csdn.net/springsdl/article/details/112508834?spm=1001.2014.3001.5501
第四步可以将其放入idea中使用快捷键ctrl+alt+l进行格式化操作,方便查找。
更多相关内容 -
java 导出自定义Word
2022-04-06 18:12:45// 服务器需要下载的地址 //String downUrl = "F:\\word测试\\dilreword\\DILRE" + System.currentTimeMillis() + ".doc"; // 本地需要下载的地址 // 查询演练报告 DilreportDto dto = new DilreportDto(); dto....Controller代码 @PostMapping(value = "/exportWordDilreport") @ApiOperation(httpMethod = "POST", value = "导出演练报告") public Wrapper exportWordDilreport(@RequestHeader("token") String token, @RequestBody DilreportSelDto dilreportDto, HttpServletRequest request, HttpServletResponse response) throws Exception{ log.info("------------------- 演练报告下载BEGIN ---------------------------"); Wrapper wrapper = dilreportService.exportWordDilreport(token,dilreportDto); if (wrapper.getCode() == 200) { // 上传文件FTP 返回路径 String title = wrapper.getResult().toString(); return dilreportService.uploadWordFile(token,wrapper.getMessage(),title); } log.info("------------------- 演练报告下载END ---------------------------"); // 删除下载过的文件,不占用资源 dilreportService.delFiles(token); return wrapper; } 业务层代码 @Override public Wrapper exportWordDilreport(String token, DilreportSelDto dilreportDto) throws Exception{ // 创建一个文档( Document document = new Document(PageSize.A4);//设置纸张大小 createFile(); // 创建文件夹 String downUrl = pemBusinessProperties.getWordFile()+"DILRE" + System.currentTimeMillis() + ".doc"; // 服务器需要下载的地址 //String downUrl = "F:\\word测试\\dilreword\\DILRE" + System.currentTimeMillis() + ".doc"; // 本地需要下载的地址 // 查询演练报告 DilreportDto dto = new DilreportDto(); dto.setTaskId(dilreportDto.getTaskId()); DilreportVo dilreportVo = new DilreportVo(); Wrapper wrapper = selectDilreport(token,dto); if(null != wrapper) { dilreportVo = (DilreportVo) wrapper.getResult(); if(null != dilreportVo) { //try { // 查询实操记录 SelRelationDto selRelationDto = new SelRelationDto(); selRelationDto.setTaskId(dilreportDto.getTaskId()); ReportRelationVo reportRelationVo = new ReportRelationVo(); Wrapper relationWrapper = selectRelationInfo(token,selRelationDto); if(null != relationWrapper) { reportRelationVo = (ReportRelationVo) relationWrapper.getResult(); } RtfWriter2.getInstance(document, new FileOutputStream(downUrl)); //打开word进行填充数据 document.open(); Font font10 = FontFactory.getFont("STSong-Light", "Cp1252", 5); // 通用 font10.setSize(12); font10.setStyle("bold"); // normal bold italic oblique underline line-through Font font8 = FontFactory.getFont("STSong-Light", "Cp1252", 5); // 通用 font8.setSize(12); Paragraph paragraph = new Paragraph(dilreportVo.getReportTitle()); paragraph.setSpacingBefore(15); paragraph.setAlignment(Element.ALIGN_CENTER); // 居中 Font font = FontFactory.getFont("STSong-Light", "Cp1252", 5); font.setSize(14); paragraph.setFont(font); document.add(paragraph); //创建表格 Table table = new Table(3); table.setWidth(100); table.setPadding(5); table.setBorder(0); table.setBorderColor(Color.WHITE); //常见单元格填充图片 Paragraph paragraph1 = new Paragraph("应急演练", font10); paragraph1.setSpacingBefore(10); Cell cell1 = getColRowCell(paragraph1); table.addCell(cell1, 0, 0); Paragraph paragraph2 = getContentSpacingParagraph("演练名称:" + dilreportVo.getDilName(), font8); Cell cell2 = getCell(paragraph2); // 封装通用 table.addCell(cell2, 3, 0); // 将日期格式化 //String practicalDate = PemDateUtils.getDateAssStrFormat(dilreportVo.getPracticalDate()); Paragraph paragraph21 = getContentSpacingParagraph("日期:" + dilreportVo.getPracticalDate(), font8); Cell cell21 = getCell(paragraph21); // 封装通用 table.addCell(cell21, 3, 1); Paragraph paragraph22 = getContentSpacingParagraph("起止时间:" + dilreportVo.getStartTime()+"-"+dilreportVo.getEndTime(), font8); Cell cell22 = getCell(paragraph22); // 封装通用 table.addCell(cell22, 3, 2); Paragraph paragraph3 = getContentSpacingParagraph("演练目的:" + dilreportVo.getDilPurposes(), font8); Cell cell3 = getCell(paragraph3); // 封装通用 table.addCell(cell3, 4, 0); Paragraph paragraph31 = getContentSpacingParagraph("演练地点:" + dilreportVo.getPracticalAddress(), font8); Cell cell31 = getCell(paragraph31); // 封装 Paragraph paragraph32 = getContentSpacingParagraph("演练部门/人:" + dilreportVo.getPracticalUserDept(), font8); Cell cell32 = getCell(paragraph32); // 封装通用 table.addCell(cell32, 4, 2); //常见单元格填充图片 Paragraph paragraph4 = getSpacingMaxParagraph("应急演练方案", font10); Cell cell4 = new Cell(paragraph4); cell4.setColspan(3); // 跨列 cell4.setBorder(0); table.addCell(cell4, 5, 0); cell4.setHorizontalAlignment(Element.ALIGN_CENTER); // 措施以及要求 Paragraph paragraph6 = getSpacingMaxParagraph(dilreportVo.getProgTitle(), font10); paragraph6.setAlignment(Element.ALIGN_CENTER); // 居中 Cell cell6 = new Cell(paragraph6); // 中间部分整个内容 cell6.setColspan(3); cell6.setBorder(0); // 一、演练目的 Paragraph paragraph61 = getSpacingMaxParagraph("一、演练目的",font10); cell6.addElement(paragraph61); Paragraph context1 = assemblyParagraph(dilreportVo.getProgPurposes()); // 演练目的内容 cell6.addElement(context1); // 二、组织架构 Paragraph paragraph62 = getSpacingMaxParagraph("二、组织架构",font10); cell6.addElement(paragraph62); // 获取组内信息 if(!CollectionUtils.isEmpty(dilreportVo.getGroupPojoList())){ int count = 0; // ++ 表示 先算结果在输出 for(EmergencyGuidanceGroupPojo groupPojo : dilreportVo.getGroupPojoList()){ Paragraph groupNamePar = new Paragraph(++count + "、" + groupPojo.getGuidanceGroupName() + ":",font10); // 救援组/指导组 groupNamePar.setIndentationLeft(5); groupNamePar.setIndentationRight(5); cell6.addElement(groupNamePar); Paragraph context2 = new Paragraph( groupPojo.getGuidanceGroupDuty() + groupPojo.getRemark(),font8); // 演练流程内容 context2.setIndentationLeft(15); context2.setIndentationRight(15); cell6.addElement(context2); } } // 三、演练流程 Paragraph paragraph63 = getSpacingMaxParagraph("三、演练流程",font10); cell6.addElement(paragraph63); Paragraph context3 = assemblyParagraph(dilreportVo.getProgProcess()); // 组装富文本 cell6.addElement(context3); table.addCell(cell6, 6, 0); // 参加人员 Paragraph paragraph7 = getSpacingMinParagraph("参加人员签到", font10); Cell cell7 = getColRowCell(paragraph7); table.addCell(cell7, 7, 0); // 参加人员 Paragraph paragraph8 = getContentParagraph(reportRelationVo.getJoinUser(), font8); Cell cell8 = new Cell(paragraph8); cell8.setColspan(3); // 跨列 cell8.setRowspan(3); // 跨行 cell8.setBorder(0); table.addCell(cell8, 10, 0); // 演练情况记录 Paragraph paragraph9 = getSpacingMinParagraph("演练情况记录", font10); Cell cell9 = getColRowCell(paragraph9); table.addCell(cell9, 13, 0); // 演练情况记录内容 Paragraph paragraph10 = assemblyParagraph(reportRelationVo.getContent()); Cell cell10 = new Cell(paragraph10); cell10 = getLeftParagraph("记录人:" + dilreportVo.getNoteUser(), font8, cell10); // 追加段落 table.addCell(cell10, 16, 0); // 演练总结 Paragraph paragraph11 = getSpacingMinParagraph("演练总结", font10); Cell cell11 = getColRowCell(paragraph11); table.addCell(cell11, 19, 0); // 演练总结内容 Paragraph paragraph12 = getContentParagraph(dilreportVo.getProgSummary(), font8); Cell cell13 = new Cell(paragraph12); cell13 = getLeftParagraph("记录人:" + dilreportVo.getSumingUser(), font8, cell13); // 追加段落 table.addCell(cell13, 22, 0); // 经理审核意见 Paragraph paragraph14 = getContentParagraph(dilreportVo.getRevComment(),font8); Cell cell14 = new Cell(paragraph14); cell14 = getLeftManagerParagraph("经理审核意见:" + dilreportVo.getExamineUser(),font8,cell14); // 追加段落 table.addCell(cell14, 25, 0); // 将table加入文档中 document.add(table); // 添加图片 Paragraph paragraph15 = new Paragraph("应急演练照片", font10); paragraph15.setSpacingBefore(10); // 段落下间距 document.add(paragraph15); // 添加照片 Table table1 = new Table(4); table1.setWidth(100); table1.setPadding(10); // 设置列内容间距 table1.setBorderColor(Color.WHITE); // 图片 if(!CollectionUtils.isEmpty(dilreportVo.getCultivateEncList())){ String filename = ""; // 文件名称 for(CultivateEnc cultivateEnc : dilreportVo.getCultivateEncList()){ if(StringUtils.isNotEmpty(cultivateEnc.getFileUrl())){ // 获取文件名 filename = cultivateEnc.getFileUrl().substring(cultivateEnc.getFileUrl().lastIndexOf("/")+1); // 获取文件前文件夹 String dateDir = cultivateEnc.getFileUrl().replace("//","/"); String [] dateDirs = dateDir.split("/"); dateDir = "/" + dateDirs[3] + "/" + dateDirs[4] + "/" + dateDirs[5] + "/"; // 下载文件 ftpUtil.downloadFtpFile(dateDir,filename); } Image img = Image.getInstance(pemBusinessProperties.getPhotoUrl()+filename); //Image img = Image.getInstance("F:\\word测试\\photo\\"+filename); img.scaleAbsolute(120, 100); // 设置图片大小 Cell cell = new Cell(img); cell.setBorderColor(Color.WHITE); cell.setHorizontalAlignment(Element.ALIGN_CENTER); table1.addCell(cell); } } document.add(table1); // 关闭文档 if (document != null) { document.close(); } }else{ return WrapMapper.wrap(Wrapper.ERROR_CODE, "未查询到演练报告"); } } return WrapMapper.wrap(Wrapper.SUCCESS_CODE, downUrl,dilreportVo.getReportTitle()); } @Override public Wrapper uploadWordFile(String token, String fileName,String title) throws Exception { // 上传文件至FTP 返回下载路径给前端下载 File file = new File(fileName); // 文件路径 //InputStream inputStream = new FileInputStream(file); //String UUID = PubUtils.uuid(); // 生成UUID //String remoteFile = new StringBuffer(PemConstants.PEM_UPLODE_SUFFIX).append(UUID).append(FtpFileUtils.getFileType(file.getName())).toString(); //String remoteFile = new StringBuffer(title).append(System.currentTimeMillis()).append(FtpFileUtils.getFileType(file.getName())).toString(); //FtpClientTemplate.uploadFile(remoteFile, remoteDirectory, inputStream); //上传文件 // 调用文件上传API FileInputStream fileInputStream = new FileInputStream(file); MultipartFile multipartFile = new MockMultipartFile("file", file.getName(), ContentType.APPLICATION_OCTET_STREAM.toString(), fileInputStream); Wrapper<FileUploadVo> fileUploadVoWrapper = fileOperatorFeignApi.uploadFile(PemConstants.BEARER,token,remoteDirectory,multipartFile); if(null != fileUploadVoWrapper){ FileUploadVo uploadVo = fileUploadVoWrapper.getResult(); if(null != uploadVo){ return WrapMapper.wrap(Wrapper.SUCCESS_CODE, uploadVo.getFileWebProxyUrl()); } } //String fileUrl = FtpFileUtils.getFileUrl(remoteFile, remoteDirectory); return WrapMapper.ok(); } @Override public Wrapper delFiles(String token) throws Exception { // 文件地址 String[] str = {pemBusinessProperties.getWordFile(), pemBusinessProperties.getPhotoUrl()}; //String[] str = {"F:\\word测试\\dilreword\\", "F:\\word测试\\photo\\"}; List<File> fileList = new ArrayList<>(); for (int i = 0; i < str.length; i++) { fileList.add(new File(str[i])); } // 连续创建文件夹以及子集文件夹 for (File file : fileList) { if (file.exists()) { File[] files = file.listFiles(); // 所有子集 for (int i = 0; i < files.length; i++) { if (files[i].exists()) {//删除子文件 files[i].delete(); } } file.delete(); } } return WrapMapper.ok(); } /** * 创建文件所需文件夹 */ public void createFile() { // 文件地址 String[] str = {pemBusinessProperties.getWordFile(), pemBusinessProperties.getPhotoUrl()}; //String[] str = {"F:\\word测试\\dilreword\\", "F:\\word测试\\photo\\"}; List<File> fileList = new ArrayList<>(); for (int i = 0; i < str.length; i++) { fileList.add(new File(str[i])); } // 连续创建文件夹以及子集文件夹 for (File file : fileList) { if (!file.exists()) { file.mkdirs(); } } } /** * 组装富文本读取 * @param content * @return * @throws IOException */ public Paragraph assemblyParagraph(String content) throws IOException { Paragraph paragraph = new Paragraph(); paragraph.setIndentationLeft(15); //paragraph.setIndentationRight(15); StyleSheet styleSheet = new StyleSheet(); List contList = HTMLWorker.parseToList(new StringReader(content), styleSheet); for (int i = 0; i < contList.size(); i++) { Element e = (Element) contList.get(i); paragraph.add(e); } return paragraph; } /** * 组装段落上下间距 * @param str * @param font * @return */ public Paragraph getContentSpacingParagraph(String str,Font font){ Paragraph paragraph = new Paragraph(str,font); //paragraph.setSpacingBefore(2); return paragraph; } /** * 组装段落上下间距 * @param str * @param font * @return */ public Paragraph getSpacingMaxParagraph(String str,Font font){ Paragraph paragraph = new Paragraph(str,font); paragraph.setSpacingAfter(10); paragraph.setSpacingBefore(10); return paragraph; } /** * 组装段落上下间距 * @param str * @param font * @return */ public Paragraph getSpacingMinParagraph(String str,Font font){ Paragraph paragraph = new Paragraph(str,font); paragraph.setSpacingAfter(6); paragraph.setSpacingBefore(6); return paragraph; } /** * 组装段落左右间距 * @param str * @param font * @return */ public Cell getLeftParagraph(String str,Font font,Cell cell) throws BadElementException{ Paragraph paragraph = new Paragraph(str,font); paragraph.setIndentationLeft(420); paragraph.setIndentationRight(15); //paragraph.setSpacingAfter(20); cell.addElement(paragraph); cell.setColspan(3); // 跨列 cell.setRowspan(3); // 跨行 cell.setBorder(0); return cell; } /** * 组装段落左右间距(经理审核意见) * @param str * @param font * @return */ public Cell getLeftManagerParagraph(String str,Font font,Cell cell) throws BadElementException{ Paragraph paragraph = new Paragraph(str,font); paragraph.setIndentationLeft(383); paragraph.setIndentationRight(15); //paragraph.setSpacingAfter(15); cell.addElement(paragraph); cell.setColspan(3); // 跨列 cell.setRowspan(3); // 跨行 cell.setBorder(0); return cell; } /** * 组装内容段落 * @param str * @param font * @return */ public Paragraph getContentParagraph(String str,Font font){ Paragraph paragraph = new Paragraph(str,font); paragraph.setSpacingAfter(6); paragraph.setSpacingBefore(6); paragraph.setIndentationLeft(15); paragraph.setIndentationRight(15); return paragraph; } /** * 组装列(cell) * @param paragraph * @return */ public Cell getColRowCell(Paragraph paragraph) throws BadElementException{ Cell cell = new Cell(paragraph); cell.setColspan(3); // 跨列 cell.setRowspan(3); // 跨行 cell.setBorder(0); cell.setHorizontalAlignment(Element.ALIGN_CENTER); return cell; } /** * 组装列(cell) * @param paragraph * @return */ public Cell getCell(Paragraph paragraph) throws BadElementException{ //paragraph.setSpacingAfter(5); Cell cell = new Cell(paragraph); cell.setBorder(0); cell.setHorizontalAlignment(Element.ALIGN_CENTER); return cell; }
-
word设置自定义样式
2021-06-11 06:00:20如何使用Word自定义样式生成目录步骤/方法 1 首先搞清楚论文格式要CSS布局HTML小编今天和大家分享,比如格式要CSS布局HTML小编今天和大家分享如下: 论文统一用微软Word软件排版,16开纸打樱严格按照标准打印格式的...如何使用Word自定义样式生成目录
步骤/方法 1 首先搞清楚论文格式要CSS布局HTML小编今天和大家分享,比如格式要CSS布局HTML小编今天和大家分享如下: 论文统一用微软Word软件排版,16开纸打樱严格按照标准打印格式的定型字号,正文用小四宋,行距20磅,每行34个汉字,一级标题用小三黑体,二级标题用四号黑体,三级标题用小四号黑体。
word自己设定的标题样式,如何生成目录
标题格式不是word自带的,而是按照学校要CSS布局HTML小编今天和大家分享重新设的新样式。生成目录时生成目录的样式,必须进行设置: 假设自定义的样式为“样式1”,引用--目录--目录--插入目录,对话框中按“选项”,在列表中找到“样式1”,然后指定目录级别。
WORD的表格边框如何添加自定义的样式
WORD中添加表格,表格的边框样式是固定的 有什么方法可以在下拉框中添加可以设置word表格的边框样式。在word2007中,单击表格左上角的移动控点选中表格,单击表格工具的设计选项卡,在绘图边框组单击笔样式按钮,在下拉列表中选择边框样式,然后单击表样式组的边框按钮后的下拉箭头。
word 文档结构图怎么显示自定义的样式内容?
word07,有自定义的一些样式,比如样式1,样式2,现在想通过文档结构图第一步:点击word菜单栏右侧,更换样式下方的“小箭头”,下拉菜单后,滚动样式表,拖到大概下图所示位置,会看到“文档结构图”的样式。 第二步:找到文档结构图之后,点击右键,或是左键点击小箭头下拉菜单,会发现如图所示。
如图,在word2016中,如何把这样的符号变成编号?我只看到项目符号中有现在Word 2013的编号库里已经有了这种编号格式,直接选择即可。 关于如何自定义编号格式,Word 2013可以这样操作: 一、单击“开始”选项卡“段落”区域“编号”右边的下拉箭头,选择“定义新编号格式”; 二、在“编号样式”里选择基础样式后。
word2010,如何通过自定义的样式确定大纲级别?
word2010,如何通过自定义的样式确定大纲级别? 情况描述: 我新建了“一哈哈,昨天刚指导了别人。
怎样删除 word 2013 所有自定义样式
比如一个有很多内容的文档,其中有一些内置样式被修改,还有一些新增的在你的模板目录 比如:C:\Documents and Settings\Administrator\Application Data\Microsoft\Templates,把里面的Normal.dot文件删除。
word07版文档脚注怎么修改为自定义样式了
我的word文档脚注设置为带圆圈的样式了,现在希望修改为自定义的【1】的word07版文档脚注修改为自定义样式:
首先打开microsoft offfice2013中的组件之一word,接着打开我们要编辑的文档;
将光标定位在文档中的正文中,点击【开始】选项卡,接着点击【样式】族中的折叠框三角按钮;
接着word界面会弹出【样
word中如何只显示自定义的几个样式word中如何只显示自定义的几个样式
【2003版】格式 → 样式和格式 → 在界面右侧打开的窗格下方“显示”列表中选择“自定义”,然后根据需要勾选要显示的自定义样式即可。
如何增加word中“自定义编号样式”中的“编号样式”
特指加入①②③④这样的编号,在“自定义编号样式”设置中我们知道“编号格式”现在Word 2013的编号库里已经有了这种编号格式,直接选择即可。 关于如何自定义编号格式,Word 2013可以这样操作: 一、单击“开始”选项卡“段落”区域“编号”右边的下拉箭头,选择“定义新编号格式”; 二、在“编号样式”里选择基础样式后。
-
word添加自定义样式(导入normal.dotm)
2022-04-17 23:01:24没有自己的word样式,那么这个教程可以实现导入自己的word样式。 以后走到哪里都不用怕没有自己的样式, 重新安装word也可以导入自己的样式 打开word,左上角点击“文件”,然后在弹出的界面选择“选项”,然后...有关word的其它教程
《word添加MathType插件》
https://blog.csdn.net/qq_52877060/article/details/124238155?utm_source=app&app_version=5.3.0&code=app_1562916241&uLinkId=usr1mkqgl919blen《word添加自定义快速访问工具栏》
https://blog.csdn.net/qq_52877060/article/details/124238356?utm_source=app&app_version=5.3.0&code=app_1562916241&uLinkId=usr1mkqgl919blen《word添加自定义样式(导入normal.dotm)》
https://blog.csdn.net/qq_52877060/article/details/124238823?utm_source=app&app_version=5.3.0&code=app_1562916241&uLinkId=usr1mkqgl919blen《word中将宏模块添加到Normal.dotm模板中》
https://blog.csdn.net/qq_52877060/article/details/124239119?utm_source=app&app_version=5.3.0&code=app_1562916241&uLinkId=usr1mkqgl919blen
目的:在别人的电脑使用word或者使用的是其他版本的word, 没有自己的word样式,那么这个教程可以实现导入自己的word样式。 以后走到哪里都不用怕没有自己的样式, 重新安装word也可以导入自己的样式
-
打开word,左上角点击“文件”,然后在弹出的界面选择“选项”,然后按照下面图片的步骤操作。
-
重启word,点击“开始”,然后点击样式的下拉三角,就看到所有的样式都是我们之前用的。
- Normal.dotm模板链接
百度云链接:Normal.dotm模板(密码:2WTC)
https://pan.baidu.com/s/19c9GZ0vk9GcD3DK3hRBgGg?pwd=2WTC
- 自定义word样式教程pdf链接
蓝奏云链接:自定义word样式教程pdf(密码:2WTC)
https://wwc.lanzouy.com/iXeee03dfbbe百度云链接:自定义word样式教程pdf(密码:2WTC)
https://pan.baidu.com/s/1cyvT8iiRTim13tq6GinbIw?pwd=2WTC
-
-
word源码java-officeexport-java:三行代码导出自定义样式word
2021-06-05 22:18:10开发中偶尔会有固定模板导出word的需求,常见的导出通常通过直接修改xml或者通过工具库代码调整样式输出,这些方式开发困难并且不利于后期维护。 一些有规则的文档需要人工填写,费时费力,此时配置数据库做模板渲染... -
word2016自定义标题样式
2020-10-09 02:43:07https://baijiahao.baidu.com/s?id=1552363796361294&wfr=spider&for=pc https://jingyan.baidu.com/article/76a7e409114d99fc3a6e1565.html -
C# 在Word 创建word自定义列表样式
2019-08-29 17:24:35using Microsoft.Office.Interop.Word; using static Microsoft.Office.Interop.Word.WdAlertLevel; */ object OMissing = Missing.Value; object docVisible = true; Application OWord=new Application ... -
phpword 样式
2021-05-08 02:13:03网页中直接显示WORD文档需要浏览器有控件支持控件可以百度一下,NKO OFFICE控件 不过是收费的,也有注册版的低版本的控件可以直接原生显示WORD文档内容没什么特别方法,因为早期word格式并不公开,所以除了调用... -
小技巧(8):Word中自定义目录,并设置自动目录的格式
2022-03-29 15:06:18文章目录一、对正文中的目录设置大纲级别2.1、通过样式设置标题级别2.2、通过段落设置标题级别二、设定自定义目录格式 一、对正文中的目录设置大纲级别 2.1、通过样式设置标题级别 通过样式中,对正文中的内容设置... -
自定义Word样式模板,设置为默认模板
2021-09-22 22:02:15文章目录前言一、具体操作步骤 前言 由于在大学毕业写论文的时候,论文格式的要求十分严格,但是在...方法是将自定义的样式模板复制、粘贴、替换掉原始office中的模板。 一、具体操作步骤 1、生成 “ .dotm ”模板文件 -
word自定义目录格式时设置的标题格式不生效
2021-03-08 08:49:37写毕业论文时,遇到自定义目录格式不生效的问题,一番搜索后,终于还是靠自己解决了这个问题,...解决方法:经过试验发现,自己在设置正文标题时,直接选中了word提供的“标题1”、“标题2”和“标题3”样式,由于这 -
word自定义目录
2019-04-25 17:23:13自定义目录 2、确定显示级别->自定义修改确定字体段落 3、点击修改样式 4、修改格式->选择后续段落样式为你想要修改的样式 5、确定应用即可,标题类别自行在文章中设置好,这样目录才会自动生成 ... -
Word2021自定义设置页码样式.docx
2021-09-27 04:28:41Word2021自定义设置页码样式.docx -
Word如何使用预设样式、自定样式以及生成自动目录教程
2022-05-31 11:33:16本教程是让大家了解Word的样式的使用、自定义样式以及生成自动目录的方法,教程中还有一些设置我还不知道为什么要设置成这样,设置成这样和设置成那样有什么区别,但最终是能够生成一个正常使用的自动目录,同时也... -
Word自定义目录的设置
2022-05-30 20:11:26目录设置好了,目录样式也已经调好了,但是正新后,还是有格式不统一的(如有的粗体、有的斜体、甚至有的字体都不一样)3.文档有的部分,正文并不写相应标题,但目录要体现出来三、常用的生成方法1.方法2.优缺点(1... -
word2016自定义快捷键
2020-03-31 17:58:54word2016 自定义快捷键 -
word---自定义标题级别列表样式
2021-04-29 10:28:49参考:word利用多级列表功能实现章节标题自动编号 -
word定义标题样式级别_如何在Word 2013中添加和删除自定义标题标签
2020-09-13 22:38:43word定义标题样式级别When inserting images, tables, or equations in Word documents, you can easily addautomatically numbered captions to these elements. They can contain consistent labels, such as ... -
Word使用自定义标题或者样式
2020-05-12 17:08:13Word版本:2013 -
Word2021怎样创建自定义表格样式.docx
2021-09-27 04:26:15Word2021怎样创建自定义表格样式.docx -
在Word中自定义多级列表样式
2022-06-20 16:58:28Word中自带的多级列表往往不符合我们所需的格式要求,此时需要按照格式要求自定义多级列表的样式,方便在写作过程中直接生成我们所需的多级列表格式。 -
WPF自定义样式与模板
2021-09-06 21:22:38----自定义样式与模板。 一、样式 在WPF中我们可以使用Style来设置控件的某些属性值,并使该设置影响到指定范围内的 所有该类控件或影响指定的某一控件,比如说我们想将窗口中的所有按钮都保持某一种 风格,那么我们... -
java生成指定样式的word文档
2021-09-08 16:12:12java生成指定样式的word文档 ...3、将word模板和.fil文件可以放在服务器上指定的地方,位置可以自定义。 相关代码如下 Java代码(向模板中写入数据): import freemarker.template.Configuration; import free -
word---自定义编号样式
2021-04-29 10:31:44定义标题样式 定义标题级别样式 定义标题编号样式 定义编号符号样式 这几种相区别 -
Word-VBA 格式化多级列表和自定义列表
2015-10-19 01:25:07word vba script for format the muti-level title and single-level level, support the bullet style and number style. -
如何在Microsoft Word中更改默认标题样式
2020-09-16 03:43:34Word provides built-in styles for several different levels of headings and subheads—Heading 1,Heading 2, and so on. The styles define thefont family, size, color, and more. While you can create your.... -
VBA +C# Word 开发 多级列表样式设定代码.zip
2021-09-17 14:50:00Word VBA+C# 开发 多级列表样式设定代码 -
springboot中使用freemarker动态生成word文档,以及使用POI导出自定义格式Excel
2019-10-22 17:39:341. 使用Apache POI 3.9 自定义样式导出Excel文件; 2. 使用freemarker动态生成word .doc文档(带图片Word以及复杂格式word) 详细说明见个人博客及 github: https://github.com/DuebassLei/excel-poi -
word自定义标题编号
2018-07-01 15:12:00打开Word,在菜单栏中选择“开始”项,在此选项中点击红框里箭头所指的箭头 2 操作第一步的时候,单击向下的箭头,会出现一下对话框。单击红框所指项,会出现“定义新... -
【Word】Word更改默认模板样式——使用自定义模板【以Windows10+Word2019为例】
2020-07-16 09:56:31Word更改默认模板+自定义适用于自己风格的模板 Office默认模板位置: %AppData%\Microsoft\Templates 复制以上内容到【文件资源管理器】地址栏>>回车。即可看到下图名称为Normal.dotm的Word模板。 右击该...