Skip to content

Commit 105f6ce

Browse files
committed
Add WordDocument
1 parent e5d6c55 commit 105f6ce

File tree

13 files changed

+1378
-4
lines changed

13 files changed

+1378
-4
lines changed

scripts/Build-VBA.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ if ($null -eq $officeApp) {
9191
# Open the document
9292
if ($officeAppName -eq "Excel") {
9393
$doc = $officeApp.Workbooks.Open($outputFilePath)
94-
} elseif ($officeApp -eq "Word") {
94+
} elseif ($officeAppName -eq "Word") {
9595
$doc = $officeApp.Documents.Open($outputFilePath)
96-
} elseif ($officeApp -eq "PowerPoint") {
96+
} elseif ($officeAppName -eq "PowerPoint") {
9797
$doc = $officeApp.Presentations.Open($outputFilePath)
98-
} elseif ($officeApp -eq "Access") {
98+
} elseif ($officeAppName -eq "Access") {
9999
$doc = $officeApp.OpenCurrentDatabase($outputFilePath)
100100
} else {
101101
Write-Host "Error: Unsupported Office application: $officeAppName"
@@ -159,7 +159,7 @@ $basFiles | ForEach-Object {
159159
# Take a screenshot of the Office application
160160
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
161161
. "$scriptPath/utils/Screenshot.ps1"
162-
$screenshotDir = (DirUp $outputDir) + "/screenshots"
162+
$screenshotDir = (DirUp $outputDir) + "screenshots/"
163163
if (-not (Test-Path $screenshotDir)) {
164164
New-Item -ItemType Directory -Path $screenshotDir -Force | Out-Null
165165
Write-Host "Created screenshot directory: $screenshotDir"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Attribute VB_Name = "Module1"
2+
3+
'@Lang VBA
4+
Option Explicit
5+
6+
Sub Demo()
7+
MsgBox "Hello, World!"
8+
End Sub
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
3+
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />
4+
<Default Extension="xml" ContentType="application/xml" />
5+
<Override PartName="/word/document.xml" ContentType="application/vnd.ms-word.document.macroEnabled.main+xml" />
6+
<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml" />
7+
<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml" />
8+
<Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml" />
9+
<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml" />
10+
<Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml" />
11+
<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />
12+
<Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" />
13+
</Types>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
3+
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" />
4+
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" />
5+
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml" />
6+
</Relationships>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?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">
3+
<Template>Normal.dotm</Template>
4+
<TotalTime>0</TotalTime>
5+
<Pages>1</Pages>
6+
<Words>0</Words>
7+
<Characters>0</Characters>
8+
<Application>Microsoft Office Word</Application>
9+
<DocSecurity>0</DocSecurity>
10+
<Lines>0</Lines>
11+
<Paragraphs>0</Paragraphs>
12+
<ScaleCrop>false</ScaleCrop>
13+
<Company>
14+
</Company>
15+
<LinksUpToDate>false</LinksUpToDate>
16+
<CharactersWithSpaces>0</CharactersWithSpaces>
17+
<SharedDoc>false</SharedDoc>
18+
<HyperlinksChanged>false</HyperlinksChanged>
19+
<AppVersion>16.0000</AppVersion>
20+
</Properties>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?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">
3+
<dc:title>
4+
</dc:title>
5+
<dc:subject>
6+
</dc:subject>
7+
<dc:creator>Martin Leduc</dc:creator>
8+
<cp:keywords>
9+
</cp:keywords>
10+
<dc:description>
11+
</dc:description>
12+
<cp:lastModifiedBy>Martin Leduc</cp:lastModifiedBy>
13+
<cp:revision>2</cp:revision>
14+
<dcterms:created xsi:type="dcterms:W3CDTF">2025-04-18T23:46:00Z</dcterms:created>
15+
<dcterms:modified xsi:type="dcterms:W3CDTF">2025-04-18T23:46:00Z</dcterms:modified>
16+
</cp:coreProperties>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
3+
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml" />
4+
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml" />
5+
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />
6+
<Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml" />
7+
<Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml" />
8+
</Relationships>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16sdtfl="http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock" 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 w16sdtfl w16du wp14">
3+
<w:body>
4+
<w:p w14:paraId="6976FA3B" w14:textId="77777777" w:rsidR="005905D1" w:rsidRDefault="005905D1" />
5+
<w:sectPr w:rsidR="005905D1">
6+
<w:pgSz w:w="12240" w:h="15840" />
7+
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0" />
8+
<w:cols w:space="720" />
9+
<w:docGrid w:linePitch="360" />
10+
</w:sectPr>
11+
</w:body>
12+
</w:document>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" 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:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16sdtfl="http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du">
3+
<w:font w:name="Aptos">
4+
<w:charset w:val="00" />
5+
<w:family w:val="swiss" />
6+
<w:pitch w:val="variable" />
7+
<w:sig w:usb0="20000287" w:usb1="00000003" w:usb2="00000000" w:usb3="00000000" w:csb0="0000019F" w:csb1="00000000" />
8+
</w:font>
9+
<w:font w:name="Times New Roman">
10+
<w:panose1 w:val="02020603050405020304" />
11+
<w:charset w:val="00" />
12+
<w:family w:val="roman" />
13+
<w:pitch w:val="variable" />
14+
<w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000" />
15+
</w:font>
16+
<w:font w:name="Aptos Display">
17+
<w:charset w:val="00" />
18+
<w:family w:val="swiss" />
19+
<w:pitch w:val="variable" />
20+
<w:sig w:usb0="20000287" w:usb1="00000003" w:usb2="00000000" w:usb3="00000000" w:csb0="0000019F" w:csb1="00000000" />
21+
</w:font>
22+
</w:fonts>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" 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: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:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16sdtfl="http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du">
3+
<w:view w:val="web" />
4+
<w:zoom w:percent="100" />
5+
<w:proofState w:spelling="clean" w:grammar="clean" />
6+
<w:defaultTabStop w:val="720" />
7+
<w:characterSpacingControl w:val="doNotCompress" />
8+
<w:compat>
9+
<w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15" />
10+
<w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1" />
11+
<w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1" />
12+
<w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1" />
13+
<w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1" />
14+
<w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0" />
15+
</w:compat>
16+
<w:rsids>
17+
<w:rsidRoot w:val="00BA52E7" />
18+
<w:rsid w:val="001C00A2" />
19+
<w:rsid w:val="002028B5" />
20+
<w:rsid w:val="00231FF6" />
21+
<w:rsid w:val="005905D1" />
22+
<w:rsid w:val="00792848" />
23+
<w:rsid w:val="00BA52E7" />
24+
<w:rsid w:val="00D64616" />
25+
<w:rsid w:val="00FB3E29" />
26+
</w:rsids>
27+
<m:mathPr>
28+
<m:mathFont m:val="Cambria Math" />
29+
<m:brkBin m:val="before" />
30+
<m:brkBinSub m:val="--" />
31+
<m:smallFrac m:val="0" />
32+
<m:dispDef />
33+
<m:lMargin m:val="0" />
34+
<m:rMargin m:val="0" />
35+
<m:defJc m:val="centerGroup" />
36+
<m:wrapIndent m:val="1440" />
37+
<m:intLim m:val="subSup" />
38+
<m:naryLim m:val="undOvr" />
39+
</m:mathPr>
40+
<w:themeFontLang w:val="en-CA" />
41+
<w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink" />
42+
<w:shapeDefaults>
43+
<o:shapedefaults v:ext="edit" spidmax="1026" />
44+
<o:shapelayout v:ext="edit">
45+
<o:idmap v:ext="edit" data="1" />
46+
</o:shapelayout>
47+
</w:shapeDefaults>
48+
<w:decimalSymbol w:val="." />
49+
<w:listSeparator w:val="," />
50+
<w14:docId w14:val="6AAB2B02" />
51+
<w15:chartTrackingRefBased />
52+
<w15:docId w15:val="{75E903A7-061D-4467-9934-E5AFFB2D328A}" />
53+
</w:settings>

0 commit comments

Comments
 (0)