Skip to content

error converting de word filte to HTM, RTF... #13

Description

@rubendamiens

Exception setting "SaveAs": Cannot convert the
"C:\Users\p4482690.DRUIF\AppData\Roaming\Microsoft\Signatures\shortSig.htm"
value of type "psobject" to type "Object".
Hi,

The variables are put into the word doc, I can save the word document but
$SavePath = Join-Path -Path $OutlookSignaturePath -ChildPath "$TemplateName.htm"
$Word.ActiveDocument.SaveAs([Ref]$SavePath, [Ref][Microsoft.Office.Interop.Word.WdSaveFormat]::wdFormatHTML)

generates this error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions