Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.OfficeSample
Project
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
示例代码
Kivii.Client.OfficeSample
Commits
92f507a9
Commit
92f507a9
authored
Oct 26, 2019
by
施晓雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d3027881
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
FrmMain.cs
Kivii.Client.OfficeSample/FrmMain.cs
+14
-14
No files found.
Kivii.Client.OfficeSample/FrmMain.cs
View file @
92f507a9
...
...
@@ -52,7 +52,21 @@ namespace Kivii.Client.OfficeSample
tbxTemplateFileName
.
Text
=
ofd
.
FileName
;
}
private
void
btnSelectTemplateFile2_Click
(
object
sender
,
EventArgs
e
)
{
OpenFileDialog
ofd
=
new
OpenFileDialog
();
ofd
.
Filter
=
"Excel模板文件|*.xlsx"
;
if
(
ofd
.
ShowDialog
()
!=
DialogResult
.
OK
)
return
;
tbxTemplateFileName2
.
Text
=
ofd
.
FileName
;
}
private
void
btnSelectTemplateFile3_Click
(
object
sender
,
EventArgs
e
)
{
OpenFileDialog
ofd
=
new
OpenFileDialog
();
ofd
.
Filter
=
"Excel模板文件|*.xlsx"
;
if
(
ofd
.
ShowDialog
()
!=
DialogResult
.
OK
)
return
;
tbxTemplateFileName3
.
Text
=
ofd
.
FileName
;
}
private
void
btnGenerateXlsx_Click
(
object
sender
,
EventArgs
e
)
{
//先获取要保存的文件名称
...
...
@@ -91,20 +105,6 @@ namespace Kivii.Client.OfficeSample
lblSpendTime
.
Text
=
$"共花费
{
watch
.
ElapsedMilliseconds
}
毫秒,共填充了
{
rtns
.
Count
}
个项目"
;
}
private
void
btnSelectTemplateFile2_Click
(
object
sender
,
EventArgs
e
)
{
OpenFileDialog
ofd
=
new
OpenFileDialog
();
ofd
.
Filter
=
"Excel模板文件|*.xlsx"
;
if
(
ofd
.
ShowDialog
()
!=
DialogResult
.
OK
)
return
;
tbxTemplateFileName2
.
Text
=
ofd
.
FileName
;
}
private
void
btnSelectTemplateFile3_Click
(
object
sender
,
EventArgs
e
)
{
OpenFileDialog
ofd
=
new
OpenFileDialog
();
ofd
.
Filter
=
"Excel模板文件|*.xlsx"
;
if
(
ofd
.
ShowDialog
()
!=
DialogResult
.
OK
)
return
;
tbxTemplateFileName3
.
Text
=
ofd
.
FileName
;
}
}
}
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