New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import-module syntax error in 3 examples #365
Comments
same issue is present in 2 more files: Examples/CustomReporting/CustomReport.ps1 |
Did you try to run those examples from where they were installed? Or you copy and pasted it to the console? |
I've copy and pasted it to the console |
Yeah, those examples are intended to be run from that location. I use it for testing. Let me think through a better approach so they can be used in both scenarios. |
@dfinke by using a custom module path, both scenarios should work with the proposed fix. Set PSModulePath for testing a new unreleased version: |
Check out the examples, I went with a different approach |
@dfinke thanks for fixing. Due to '$ExcelParams = @{ ... Show = $false' there is a dependency on having Excel or a compatible program installed to run the examples successfully. |
the simple code that should also work on non-Windows OS using PowerShell Core 6.0 and later:
|
Yup, the |
Using PS core 6.0.3 on Windows, yes it does work :) error encountered:
|
@dfinke are you considering to deal with my comment : I foresee many use cases to create xlsx on LINUX machines. |
When EPPlus is fully xplat, these will be addressed |
For me as a none native speaker "xplat" didn´t ring a bell initially |
xplat does mean cross platform. I am pretty sure that the use of 'x' for 'cross' comes from the UK name for tic tac toe (i.e. noughts and crosses). |
@dfinke EPPlus.Core works under WSL already. |
I tried the 4.5.x dll nuget with import Excel. Did the import-module and it failed on System.Drawing |
I understand you are en expert but with the very brief comments I fail to understand the difference between your failing and my working approach. |
I got "nuget install EPPlus.Core" working following the fix to update to latest mono version |
I was able to run the module on my Linux VM in Azure and on my local machine PS Core 6. Until PS Core is GA and it can run in Appveyor with continuous integration and more tests. Use it at your own risk. https://ci.appveyor.com/project/dfinke/importexcel/build/1.0.171 |
After I did
Install-Module ImportExcel
as administrator the code in sample: https://github.com/dfinke/ImportExcel/blob/master/Examples/PivotTable/PivotTableWithName.ps1 gives error:changing it to
works as expected :)
The text was updated successfully, but these errors were encountered: