|
@@ -190,7 +190,8 @@ public class PrintServiceImpl implements PrintService {
|
|
|
|
|
|
|
|
} else if (exportFileType.equals(ReportConstants.FILE_TYPE_WORD)) {
|
|
} else if (exportFileType.equals(ReportConstants.FILE_TYPE_WORD)) {
|
|
|
// 导出word时需要对行距等进行调整
|
|
// 导出word时需要对行距等进行调整
|
|
|
- InputStream inputStream = new ByteArrayInputStream(modifyLineSpacing(jrxmlFilePath).getBytes());
|
|
|
|
|
|
|
+ InputStream inputStream = new ByteArrayInputStream(
|
|
|
|
|
+ modifyLineSpacing(jrxmlFilePath).getBytes("UTF-8"));
|
|
|
JasperReport jasperReport = JasperCompileManager.compileReport(inputStream);
|
|
JasperReport jasperReport = JasperCompileManager.compileReport(inputStream);
|
|
|
jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, connection);
|
|
jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, connection);
|
|
|
inputStream.close();
|
|
inputStream.close();
|