php8 COM Exception Type Mistmtach in paramater #0 when calling MS Word COM object SaveAs

php8 COM Exception Type Mistmtach in paramater #0 when calling MS Word COM object SaveAs

I saw this:

https://bugs.php.net/bug.php?id=73605

 

When calling $word->SaveAs($filename, 8);

You should change to $word->SaveAs($filename, new variant(8, VT_I4);

 

 

Comments

Popular posts from this blog

Accessing Windows Share (Samba) From Linux (XFCE) using Thunar

Bypassing the error by "go get" "tls: failed to verify certificate: x509: certificate signed by unknown authority"

Using phpword to merge two Mircrosoft Office Word .docx documents