Tema: Re: C# + Excel
Autorius: Raimis
Data: 2009-02-04 12:03:51
Buvo.

Cia apie klaida: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q320369

O sprendimas - keisti regiona, pvz (VB):

Dim oldCI As System.Globalization.CultureInfo = _
System.Threading.Thread.CurrentThread.CurrentCulture

System.Threading.Thread.CurrentThread.CurrentCulture = _
New System.Globalization.CultureInfo("en-US")
...
...

System.Threading.Thread.CurrentThread.CurrentCulture = oldCI

Veikia be problemu.



"ALtas" <nobody@nobody.lt> wrote in message news:gmbm1f$e7l$1@trimpas.omnitel.net...
> Turiu tokia problema automatizuojant excel is C# naudoju excel 9 biblioteka
> Devel kompiuteris:
> Win XP + office 2003 lietuviska versija, regional settings lietuviski faila 
> atidaro nuskaito iraso ir t.t
> 
> Win Xp + office 2000 eng ir Win XP + office xp eng, regional settings 
> lietuviski - luzta su klaidos pranesimu: "Old format or invalid type 
> library"
> jeigu regional settings - angliski viskas veikia tvarkingai
> 
> pagooglines radau workaraunda - pries kreipiantis i exceli nustatyti threado 
> locale i en-us o po kreipiniu vel atstatyti, bet ir pakeitus - luzta su tuo 
> paciu pranesimu.
> 
> Gal kam buvo panasi problema? 
> 
>