Autor Beitrag
thepaine91
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 763
Erhaltene Danke: 27

Win XP, Windows 7, (Linux)
D6, D2010, C#, PHP, Java(Android), HTML/Js
BeitragVerfasst: Di 21.07.09 17:19 
Hi,

Ich mache einen Export in Excel das funktioniert auch einwandfrei. Die Spalte 'C' ist allerdings mit einer Zahl gefüllt und bei der Standartformatierung schreibt Excel mir die Zahl 305002705480 = 3,05003E+11 in das Feld.
Ich sitze mitlerweile seit einer 3/4 Stunde dran rauszufinden wie ich alle Zellen dieser Spalte zum Typ Zahl mit 0 Dezimalstellen ändern kann.
Bin für jegliche Hilfe sehr Dankbar. =)

mfg nic
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 21.07.09 18:29 
Moin!

Schon gesucht? Suche in: Delphi-Forum, Delphi-Library EXCEL ZELLE FORMAT :les: :think: :)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
thepaine91 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 763
Erhaltene Danke: 27

Win XP, Windows 7, (Linux)
D6, D2010, C#, PHP, Java(Android), HTML/Js
BeitragVerfasst: Di 21.07.09 19:20 
Danke ^^ aber ich hatte es mitlerweile sowieso gelöst.
ausblenden Delphi-Quelltext
1:
Excel.Range['C1:C'+inttostr(dm_NAME.clids_NAME.RecordCount+1)].NumberFormat := '@';					

Und schon funktioniert alles wunderbar... doofes Excel meint Zahlen automatisch als Integer zu setzten auch wenn sie als String übergeben wurden. -.-

Excel Makros sagen einem eigentlich alles was man braucht.