Skip to content

Commit 3520cc1

Browse files
committed
add basic docx zip folder
1 parent 58d9c7c commit 3520cc1

17 files changed

Lines changed: 37 additions & 35 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ MiniWord is an easy and effective .NET Word Template library.
2828
### Basic Template Export
2929

3030
```csharp
31-
var value = new Dictionary<string, object>()
32-
{
33-
["Company_Name"] = "MiniSofteware",
34-
["Name"] = "Jack",
35-
["CreateDate"] = new DateTime(2021, 01, 01),
36-
["VIP"] = true,
37-
["Points"] = 123,
38-
["APP"] = "Demo APP",
39-
};
40-
MiniSoftware.MiniWord.SaveAsByTemplate(path, templatePath, value);
31+
var value = new Dictionary<string, object>()
32+
{
33+
["Company_Name"] = "MiniSofteware",
34+
["Name"] = "Jack",
35+
["CreateDate"] = new DateTime(2021, 01, 01),
36+
["VIP"] = true,
37+
["Points"] = 123,
38+
["APP"] = "Demo APP",
39+
};
40+
MiniWord.SaveAsByTemplate(path, templatePath, value);
4141
```
4242

4343
Template:

README.zh-CN.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ MiniWord 简单 Word 模版导出+填充数据工具。
2020
### 基本模版导出
2121

2222
```csharp
23-
var value = new Dictionary<string, object>()
24-
{
25-
["Company_Name"] = "MiniSofteware",
26-
["Name"] = "Jack",
27-
["CreateDate"] = new DateTime(2021, 01, 01),
28-
["VIP"] = true,
29-
["Points"] = 123,
30-
["APP"] = "Demo APP",
31-
};
32-
MiniSoftware.MiniWord.SaveAsByTemplate(path, templatePath, value);
23+
var value = new Dictionary<string, object>()
24+
{
25+
["Company_Name"] = "MiniSofteware",
26+
["Name"] = "Jack",
27+
["CreateDate"] = new DateTime(2021, 01, 01),
28+
["VIP"] = true,
29+
["Points"] = 123,
30+
["APP"] = "Demo APP",
31+
};
32+
MiniWord.SaveAsByTemplate(path, templatePath, value);
3333
```
3434

3535
模版:

README.zh-Hant.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ MiniWord 簡單 Word 模版導出+填充數據工具。
2727
### 基本模版導出
2828

2929
```csharp
30-
var value = new Dictionary<string, object>()
31-
{
32-
["Company_Name"] = "MiniSofteware",
33-
["Name"] = "Jack",
34-
["CreateDate"] = new DateTime(2021, 01, 01),
35-
["VIP"] = true,
36-
["Points"] = 123,
37-
["APP"] = "Demo APP",
38-
};
39-
MiniSoftware.MiniWord.SaveAsByTemplate(path, templatePath, value);
30+
var value = new Dictionary<string, object>()
31+
{
32+
["Company_Name"] = "MiniSofteware",
33+
["Name"] = "Jack",
34+
["CreateDate"] = new DateTime(2021, 01, 01),
35+
["VIP"] = true,
36+
["Points"] = 123,
37+
["APP"] = "Demo APP",
38+
};
39+
MiniWord.SaveAsByTemplate(path, templatePath, value);
4040
```
4141

4242
模版:
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>793</TotalTime><Pages>1</Pages><Words>22</Words><Characters>128</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>149</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties>
2+
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>799</TotalTime><Pages>1</Pages><Words>22</Words><Characters>129</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>150</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator>Lin WeiHan</dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy>Lin WeiHan</cp:lastModifiedBy><cp:revision>2</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2022-09-11T15:14:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2022-09-12T05:37:00Z</dcterms:modified></cp:coreProperties>
2+
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator>Lin WeiHan</dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy>Lin WeiHan</cp:lastModifiedBy><cp:revision>3</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2022-09-11T15:14:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2022-09-12T08:45:00Z</dcterms:modified></cp:coreProperties>

tests/linqpads/TestBasicFill/word/_rels/document.xml.rels renamed to samples/docx/TestBasicFill/word/_rels/document.xml.rels

File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body><w:p w14:paraId="1599AF6E" w14:textId="34AAE6AB" w:rsidR="00F64201" w:rsidRDefault="00B721B4" w:rsidP="00B721B4"><w:pPr><w:pStyle w:val="Heading1"/></w:pPr><w:r><w:t>{{</w:t></w:r><w:proofErr w:type="spellStart"/><w:r><w:t>Company_Name</w:t></w:r><w:proofErr w:type="spellEnd"/><w:r><w:t>}} {{APP}} Account Data</w:t></w:r></w:p><w:p w14:paraId="278C6776" w14:textId="1B6000C5" w:rsidR="00B721B4" w:rsidRDefault="00B721B4"><w:pPr><w:rPr><w:rFonts w:hint="eastAsia"/></w:rPr></w:pPr></w:p><w:tbl><w:tblPr><w:tblStyle w:val="TableGrid"/><w:tblW w:w="0" w:type="auto"/><w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/></w:tblPr><w:tblGrid><w:gridCol w:w="1870"/><w:gridCol w:w="1870"/><w:gridCol w:w="1870"/><w:gridCol w:w="1870"/><w:gridCol w:w="1870"/></w:tblGrid><w:tr w:rsidR="00B721B4" w14:paraId="100413BB" w14:textId="77777777" w:rsidTr="00A87918"><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/><w:shd w:val="clear" w:color="auto" w:fill="AEAAAA" w:themeFill="background2" w:themeFillShade="BF"/></w:tcPr><w:p w14:paraId="5FD7C610" w14:textId="015F6641" w:rsidR="00B721B4" w:rsidRPr="00A87918" w:rsidRDefault="00B721B4"><w:pPr><w:rPr><w:b/><w:bCs/></w:rPr></w:pPr><w:r w:rsidRPr="00A87918"><w:rPr><w:b/><w:bCs/></w:rPr><w:t>Name</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/><w:shd w:val="clear" w:color="auto" w:fill="AEAAAA" w:themeFill="background2" w:themeFillShade="BF"/></w:tcPr><w:p w14:paraId="73D639A3" w14:textId="0258323E" w:rsidR="00B721B4" w:rsidRPr="00A87918" w:rsidRDefault="00B721B4"><w:pPr><w:rPr><w:b/><w:bCs/></w:rPr></w:pPr><w:proofErr w:type="spellStart"/><w:r w:rsidRPr="00A87918"><w:rPr><w:b/><w:bCs/></w:rPr><w:t>CreateDate</w:t></w:r><w:proofErr w:type="spellEnd"/></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/><w:shd w:val="clear" w:color="auto" w:fill="AEAAAA" w:themeFill="background2" w:themeFillShade="BF"/></w:tcPr><w:p w14:paraId="7C6E1CA5" w14:textId="4B5E3085" w:rsidR="00B721B4" w:rsidRPr="00A87918" w:rsidRDefault="00B721B4"><w:pPr><w:rPr><w:b/><w:bCs/></w:rPr></w:pPr><w:r w:rsidRPr="00A87918"><w:rPr><w:b/><w:bCs/></w:rPr><w:t>VIP</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/><w:shd w:val="clear" w:color="auto" w:fill="AEAAAA" w:themeFill="background2" w:themeFillShade="BF"/></w:tcPr><w:p w14:paraId="274DDEA7" w14:textId="516124C5" w:rsidR="00B721B4" w:rsidRPr="00A87918" w:rsidRDefault="00B721B4"><w:pPr><w:rPr><w:b/><w:bCs/></w:rPr></w:pPr><w:r w:rsidRPr="00A87918"><w:rPr><w:b/><w:bCs/></w:rPr><w:t>Points</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/><w:shd w:val="clear" w:color="auto" w:fill="AEAAAA" w:themeFill="background2" w:themeFillShade="BF"/></w:tcPr><w:p w14:paraId="7163781E" w14:textId="460DA08B" w:rsidR="00B721B4" w:rsidRPr="00A87918" w:rsidRDefault="00B721B4"><w:pPr><w:rPr><w:b/><w:bCs/></w:rPr></w:pPr><w:r w:rsidRPr="00A87918"><w:rPr><w:b/><w:bCs/></w:rPr><w:t>Remark</w:t></w:r></w:p></w:tc></w:tr><w:tr w:rsidR="00B721B4" w14:paraId="35A728A6" w14:textId="77777777" w:rsidTr="00B721B4"><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/></w:tcPr><w:p w14:paraId="0775B817" w14:textId="17DA096B" w:rsidR="00B721B4" w:rsidRDefault="00B721B4"><w:r><w:t>{{Name}}</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/></w:tcPr><w:p w14:paraId="4A2404F3" w14:textId="6CC57F74" w:rsidR="00B721B4" w:rsidRDefault="00B721B4"><w:r><w:t>{{</w:t></w:r><w:proofErr w:type="spellStart"/><w:r><w:t>CreateDate</w:t></w:r><w:proofErr w:type="spellEnd"/><w:r><w:t>}}</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/></w:tcPr><w:p w14:paraId="62DEB9C3" w14:textId="618125BB" w:rsidR="00B721B4" w:rsidRDefault="00B721B4"><w:r><w:t>{{VIP}}</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/></w:tcPr><w:p w14:paraId="158965BA" w14:textId="1EA5CD08" w:rsidR="00B721B4" w:rsidRDefault="00B721B4"><w:r><w:t>{{Points}}</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1870" w:type="dxa"/></w:tcPr><w:p w14:paraId="53105C06" w14:textId="07109D26" w:rsidR="00B721B4" w:rsidRDefault="00B721B4"><w:r><w:t xml:space="preserve">{{Name}} has </w:t></w:r><w:r w:rsidRPr="005F3C0A"><w:rPr><w:color w:val="FF0000"/></w:rPr><w:t xml:space="preserve">{{Points}} </w:t></w:r><w:r><w:t>points</w:t></w:r></w:p></w:tc></w:tr></w:tbl><w:p w14:paraId="671D355C" w14:textId="2752FD2A" w:rsidR="00B721B4" w:rsidRDefault="00B721B4"/><w:p w14:paraId="35C6F78B" w14:textId="77777777" w:rsidR="00A87918" w:rsidRDefault="00A87918"/><w:sectPr w:rsidR="00A87918"><w:pgSz w:w="12240" w:h="15840"/><w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/><w:cols w:space="720"/><w:docGrid w:linePitch="360"/></w:sectPr></w:body></w:document>
File renamed without changes.

0 commit comments

Comments
 (0)