Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BudgetManagementSystem
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王利雷
BudgetManagementSystem
Commits
9bff1093
Commit
9bff1093
authored
May 23, 2019
by
shj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
word说明生成完成,并提供下载
parent
66c7aed3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
BudgetExportUtil.java
src/main/java/util/BudgetExportUtil.java
+0
-0
PoiTest.java
src/test/java/PoiTest.java
+5
-0
No files found.
src/main/java/util/BudgetExportUtil.java
View file @
9bff1093
This diff is collapsed.
Click to expand it.
src/test/java/PoiTest.java
View file @
9bff1093
import
org.apache.poi.xwpf.usermodel.*
;
import
org.junit.Test
;
import
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr
;
import
java.io.FileNotFoundException
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -14,8 +16,11 @@ public class PoiTest {
FileOutputStream
out
=
new
FileOutputStream
(
"F:/new.docx"
);
XWPFParagraph
paragraph
=
document
.
createParagraph
();
paragraph
.
setSpacingBeforeLines
(
100
);
XWPFRun
run
=
paragraph
.
createRun
();
run
.
setText
(
"一、设备费"
);
run
.
setFontSize
(
18
);
run
.
setBold
(
true
);
paragraph
=
document
.
createParagraph
();
run
=
paragraph
.
createRun
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment