Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Podatak iz excela u string u VB

[es] :: .NET :: Podatak iz excela u string u VB

[ Pregleda: 2636 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

nbeograd
Goran Blecic
Beograd

Član broj: 36881
Poruke: 9
195.252.85.*



Profil

icon Podatak iz excela u string u VB20.10.2004. u 02:10 - pre 236 meseci
Zna li neko kako da u VB.NETu iz postojeceg fajla *.xls podatak iz celije
sa zadatim koordinatama da ubacim u string promenljivu?

Hvala
 
Odgovor na temu

esnaf

Član broj: 9417
Poruke: 43
*.fiberop.matgnet.com.



Profil

icon Re: Podatak iz excela u string u VB15.11.2004. u 15:48 - pre 235 meseci
Treba da dodas sledece reference na projekat:
Interop.Excel
Interop.Microsoft.Office.Core
Interop.VBIDE

KAd to uradis : u kodu dodaj


Code:

 Dim xlWbook As Excel.Workbook                                  
 Dim mySheet As Excel.Worksheet 
 xlWbook = GetObject(strDirectoryPath & "\" & strFileName) 
 mySheet = xlWbook.Worksheets(1) 'Otvaras Sheet u Excell-u

Dim str As String =mySheet.Range("A4").Value  'ako hoces bilo koji tip iz Excela
'ili
Dim str As String=mySheet.Range("A8").Text    'ako hoces string 
 


 
Odgovor na temu

esnaf

Član broj: 9417
Poruke: 43
*.fiberop.matgnet.com.



Profil

icon Re: Podatak iz excela u string u VB16.11.2004. u 08:59 - pre 235 meseci
Pardon, nisam ti rekao da ove reference ces ubaciti u projekat samo ako dodas
Com referencu Microsoft Office 10.0 Library
 
Odgovor na temu

havramm
Miroslav Havram
Software Developer / Engineer
Beograd

Član broj: 4603
Poruke: 255
212.62.55.*



Profil

icon Re: Podatak iz excela u string u VB16.11.2004. u 19:11 - pre 235 meseci
Mozda ti ovo bude korisno: An introduction on how to control Excel 2003 with J#.net. Primer je za J# (ma sta to trebalo da predstavlja ), ali verujem da ces se snaci...
If it's a girl then they're gonna call it Sigourney, after an actress. If it's a boy, then they're gonna call it Rodney, after Dave!
 
Odgovor na temu

[es] :: .NET :: Podatak iz excela u string u VB

[ Pregleda: 2636 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.