Skip to content

Casting Error in Export-Excel #108

@fMichaleczek

Description

@fMichaleczek

I have an reccurent error in Export-Excel.ps1

The french message error is (sorry I don't have a english system available now) :
Surcharge introuvable pour « TryParse » et le nombre d'arguments « 4 ».

Problem is a casting problem that can be resolve in ligne 184 :

Before :
if( [Double]::TryParse( $cellValue, [System.Globalization.NumberStyles]::Any, [System.Globalization.NumberFormatInfo]::InvariantInfo, [ref]$r ) ) {

After :
if( [Double]::TryParse( [string]$cellValue, [System.Globalization.NumberStyles]::Any, [System.Globalization.NumberFormatInfo]::InvariantInfo, [ref]$r ) ) {

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions