Comments (9)
I try to use the function Get-ExcelSheetInfo which work great with path. I have a specific UNC path with a space in it and it give an error (maybe it the same error):
New-Object : Exception lors de l'appel de « .ctor » avec « 4 » argument(s) : « Le format du chemin d'accès donné n'est pas pris en charge. »
Au caractère D:\GitMETERIEN\MDTKonsole\Modules\ImportExcel\Get-ExcelSheetInfo.ps1:33 : 19
- ... $stream = New-Object -TypeName System.IO.FileStream -ArgumentList $ ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation : (:) [New-Object], MethodInvocationException
- FullyQualifiedErrorId :
+1: ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
Thanks!
from importexcel.
I'm also experiencing trouble with Import-Excel I've switched it to (Resolve-Path $path).ProviderPath but.... I have spaces in my UNC filename and am getting the same error as @meterien though, in English:
New-Object : Exception calling ".ctor" with "4" argument(s): "The given path's format is not supported."
from importexcel.
Thanks, I'll investigate
from importexcel.
I assume this is implied but as a side note just doing
import-excel -path "\networkshare\foo.xlsx" -sheet fools
also fails
from importexcel.
Looks like New-Object -TypeName System.IO.FileStream
in Import-Excel is an issue and may be similar for the Export-Excel
thanks to @philiplavoie for the repro.
Hopefully will get to this soon.
Is it blocking you?
from importexcel.
No, it is not blocking me because as far as I can tell using the ProviderPath property in all calls to Resolve-Path (in Export-ExcelSheet.ps1 and ImportExcel.psm1) will avoid the issue.
I am still (slowly) making progress in working out what is needed to make the package work with PowerShell v2, because we are using mainly Server 2008R2 / Windows 7 where I work. Being able to generate XLSX files instead of plain CSV has the potential to simplify / enhance some of our processes.
from importexcel.
Is this not resolved now with the latest commit?
from importexcel.
@DarkLite1 I don't know. I ended up not using Import-Excel as I had a deadline to meet.
from importexcel.
Yes, I checked that in for Import-Excel and published it
from importexcel.
Related Issues (20)
- New-ConditionalText Question HOT 1
- Exporting worksheet to csv while keeping excel formats (where applicable) HOT 9
- Set-ExcelRange -Formula issue HOT 1
- KillExcel fails
- Feature Request: Set the default worksheet when the workbook is opened HOT 3
- Close-ExcelPackage -Show broken on MacOS due to PowerShell issue HOT 1
- Add -Calculate to Open-ExcelPackage and Import-Excel
- Export-Excel -Style work wrong with multiple sheets HOT 4
- Help with getting a Table without Headers HOT 6
- Exception calling "Save" with "0" argument(s) HOT 3
- Faulty Hyperlink to web site using OfficeOpenXml.ExcelHyperLink HOT 2
- Question: How to colorize header columns HOT 3
- Question: How to match a keyword (stored in a variable) in a specific column and color a range? HOT 2
- Formatting OutPut HOT 1
- Created PivotTables that have same SourceWorkSheet and same SourceRange, but manually created slicer cannot see both of them HOT 2
- TableTotalSettings Formulas transformed by Excel HOT 3
- Bug: Spreadsheet with data above StartRow causes column headers to be duplicated HOT 7
- Set-excelrange after export-excel with '-append' results in exception
- Worksheet Argument completer not working
- Conditional Formatting (Date) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from importexcel.