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

Setting up paragraph style for ListItems doesn't change the style for numbers #9

Open
PrzemyslawKlys opened this issue Jul 23, 2018 · 0 comments
Labels
bug-in-dll-i-think Something isn't working - bug in dll

Comments

@PrzemyslawKlys
Copy link
Member

As in subject
image

This leads to a:

image

Import-Module PSWriteWord -Force

$FilePath = "$Env:USERPROFILE\Desktop\PSWriteWord-Example-ListItems6.docx"
$ListOfItems = @('Test1', 'Test2')

$WordDocument = New-WordDocument $FilePath
Add-WordParagraph -WordDocument $WordDocument
$List = Add-WordList -WordDocument $WordDocument -ListType Numbered -ListData $ListOfItems -Supress $false
Set-WordList -List $List -FontSize 6 -FontFamily 'Tahoma' -Color Orange -Supress $True

$WordDocument.Paragraphs
$WordDocument.Lists
$WordDocument.ParagraphsDeepSearch


Save-WordDocument $WordDocument -Language 'en-US' -Supress $true
Invoke-Item $FilePath
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug-in-dll-i-think Something isn't working - bug in dll
Projects
None yet
Development

No branches or pull requests

1 participant