ImportExcel icon indicating copy to clipboard operation
ImportExcel copied to clipboard

Open-ExcelPackage SaveAs XLSB Format

Open blhf opened this issue 7 years ago • 1 comments

Hi can you guide me on how to covert/save the excel file as xlsb?

Here is my current code:

$FilePath = 'D:\test' $FileName = Get-ChildItem -Path 'D:\test' -Name

Foreach ($files in $FileName) { $filename2 = $(-Join($FilePath,$files)) $excel = Open-ExcelPackage -Path $(-Join($FilePath,$files)) $workbook = $excel.SaveAs($filename2,'p@ssw0rd',50)

#("$(-Join($FilePath,$files))",'')

}

I add '50' for the xlsb format. but getting error:

Cannot find an overload for "SaveAs" and the argument count: "3"

I don't know how to declare this properly please help.

blhf avatar Sep 05 '19 08:09 blhf

No, this is not supported.

https://github.com/JanKallman/EPPlus/issues/192

dfinke avatar Sep 05 '19 15:09 dfinke