2015-04-07 09:42 AM
Error Exception calling "SaveAs"
I am getting errors saving excel via powershell code in WFA
if any work around
$xl=New-Object -ComObject "Excel.Application"
#==Powershell Code for Report==
2015-04-07 11:25 PM
See, you have provided almost close to zero information for debugging and expecting a solution.
1. What are you actually trying to do.
2. What is the error message you get?
3. What values of variables $htmlReport,$xlHTML..
What can one make out from a few lines from the middle of the code. It will not help. So provide sufficient infomation.
2015-04-08 08:01 AM
this was for testing if I could write excel output to local drive via powershell on WFA server
The only exception I am getting from logs is
"Error Exception calling "SaveAs" "
Can we save Excel workbook on local drive ?
could be service account permission issues ,will report after testing
2015-04-08 12:34 PM
Attached is a simple WFA command that you can "test" to see if you have an issue with your WFA server configuration, or if the issue is in your code. This requires an open directory at C:\Temp\WFA to run. It works on my laptop with WFA installed.