Powershell Script
Posted: Wed May 22, 2024 3:58 pm
Hy,
when I try to Print a HTMl File with the Powershell Script Module,
I got a error!?
When I call the lines separtly at powershell, everything works fine.
Can you help me please
when I try to Print a HTMl File with the Powershell Script Module,
Code: Select all
$ie = new-object -com "InternetExplorer.Application"
$ie.Navigate("c:\JTL-TMP\UEBERGABESCHEIN-DHL.html")
Start-Sleep -Seconds 3
$ie.ExecWB(6,2)
Start-Sleep -Seconds 3
$ie.quit()
Code: Select all
-: 22.05.2024 16:55:10: [STDOUT] Der RPC-Server ist nicht verfgbar. (Ausnahme von HRESULT: 0x800706BA)
-: 22.05.2024 16:55:10: [STDOUT] In C:\Users\StrandkorbKing\AppData\Local\Temp\VjsPcwVDSICI7x7WL45zv3TrZJqYwC8K.ps1:4 Zeichen:1
-: 22.05.2024 16:55:10: [STDOUT] + $ie.ExecWB(6,2)
-: 22.05.2024 16:55:10: [STDOUT] + ~~~~~~~~~~~~~~~
-: 22.05.2024 16:55:10: [STDOUT] + CategoryInfo : OperationStopped: (:) [], COMException
-: 22.05.2024 16:55:10: [STDOUT] + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
-: 22.05.2024 16:55:10: [STDOUT]
-: 22.05.2024 16:55:13: [STDOUT] Der RPC-Server ist nicht verfgbar. (Ausnahme von HRESULT: 0x800706BA)
-: 22.05.2024 16:55:13: [STDOUT] In C:\Users\StrandkorbKing\AppData\Local\Temp\VjsPcwVDSICI7x7WL45zv3TrZJqYwC8K.ps1:6 Zeichen:1
-: 22.05.2024 16:55:13: [STDOUT] + $ie.quit()
-: 22.05.2024 16:55:13: [STDOUT] + ~~~~~~~~~~
-: 22.05.2024 16:55:13: [STDOUT] + CategoryInfo : OperationStopped: (:) [], COMException
-: 22.05.2024 16:55:13: [STDOUT] + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
-: 22.05.2024 16:55:13: [STDOUT]
Can you help me please