Autor Beitrag
lolof
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Mi 04.06.03 17:07 
Hi Leute

weiss jemand wie ich bei der F1book komponente auf die einzelnen Zellen zugreifen kann?????
cirrus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Mi 04.06.03 23:29 
was ist denn bitte eine F1book komponente? habe noch nie davon gehört...

_________________
Wenn die Nacht am tiefsten ist der Tag am nächsten
Domo Sokrat
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 21

W7
VS2010 pro / #D 4.2 / Delphi 2006 pro
BeitragVerfasst: Di 10.06.03 12:52 
Hallo!

@cirrus: Bei der Komponente F1Book handelt es sich um ein Active-X Objekt, das schon ewig als freie Zugabe mit Delphi mitgliefert wird und ein Excel-Sheet "simuliert". Es befindet sich in Delphi im ActiveX-Tab. Ich hab' vor einiger Zeit mal damit rumbasteln müssen.

@lolof: Zu allererst: Im Delphi-Installationsverzeichnis befindet sich unter OCX\Vci\Form1 eine Hilfedatei mit dem Namen VCF1.HLP Hier steht im Prinzip alles drin, was Du brauchst, aber ich geb' dir mal eine kleine Hilfe, wie ein Zellzugriff von statten geht:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
   // Zelle A1
   F1Book1.SetActiveCell(1,1);
   F1Book1.Text := 'Hallo Welt';

   //Zelle B1
   F1Book1.SetActiveCell(2,1);
   F1Book1.Number := 0.815;

   //Wert von Zelle A1 anzeigen
   F1Book1.SetActiveCell(1,1);
   ShowMessage (F1Book1.Text);

Ich hoffe, es hilft Dir weiter ...

_________________
Vergesst nicht: Es wird überall nur mit Wasser gekocht !!! ;-)