Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Commit b1a26be

Browse files
Example update
1 parent b8deb69 commit b1a26be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Examples/Example-Tables5.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Import-Module PSWriteWord -Force
1+
Import-Module .\PSWriteWord.psd1 -Force
22

3-
$FilePath = "$Env:USERPROFILE\Desktop\PSWriteWord-Example-Tables5.docx"
3+
$FilePath = "$PSScriptRoot\Output\PSWriteWord-Example-Tables5.docx"
44

55
$myitems = @(
66
[pscustomobject]@{name = "Joe"; age = 32; info = "Cat lover"},
@@ -13,8 +13,9 @@ $myitems1 = @(
1313
)
1414

1515
$WordDocument = New-WordDocument $FilePath
16+
$WordDocument.PackagePart.Package.PackageProperties.Title = "Test"
1617

17-
Add-WordTable -WordDocument $WordDocument -DataTable $myitems -Design ColorfulList -Supress $True #-Verbose
18+
Add-WordTable -WordDocument $WordDocument -DataTable $myitems -Design ColorfulList -Supress $True
1819

1920
Add-WordParagraph -WordDocument $WordDocument -Supress $True
2021

0 commit comments

Comments
 (0)