Announcement

Collapse
No announcement yet.

D5 + AccessApplication

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • D5 + AccessApplication

    Bekomme die Fehlermeldung
    "klasse nicht registriert"

    obwohl "accessapplication" genau wie "wordapplication" von der
    Registerkarte "Servers" hinzugefügt wurde.
    Deklaration sieht wie folgt aus:

    uses

    Windows, Messages, SysUtils, Classes, Graphics,
    Controls, Forms, Dialogs,
    StdCtrls, OleServer, Word97, msppt8, Access97;

    type

    TForm1 = class(TForm)

    WordApplication1: TWordApplication;

    BtnWord: TButton;

    BtnPPT: TButton;

    Button1: TButton;

    AccessApplication1: TAccessApplication;

    Was fehlt noch? Danke!

  • #2
    In welcher Version ist Access (nicht Runtime) bzw. Word und PopwerPoint installiert

    Comment


    • #3
      Hallo Herr Geyer,

      Access und Word sind die Versionen 2002, für WindowsXP

      Gruß

      H.F

      Comment


      • #4
        Was passiert wenn folgendes VB-Scriptdatei ausgeführt wird:

        set WordApp = CreateObject("Word.Application")
        set AccApp = CreateObject("Access.Application"

        Comment


        • #5
          procedure TForm1.Button1Click(Sender: TObject);
          begin

          access:=createoleobject 'access.application');
          access.visible := TRUE;
          access.OpenCurrentDatabase('C:\test\db1.mdb', True);
          access.OpenReport('test', acpreview, EmptyParam, EmptyParam);

          end;

          So funktioniert der Aufruf des Reports "test",
          aus Delphi heraus

          Comment


          • #6
            procedure TForm1.Button2Click(Sender: TObject);
            begin
            AccessApplication1.Connect;

            end;

            ...und so kommt oben genannter Fehler, obwohl AccessApplication1 Komponente auf das Form gesetzt worden ist

            Comment


            • #7
              Hallo,

              >..AccessApplication1 Komponente ...

              die Original-Komponenten von Delphi 5 auf der Registerseite <i>Servers</i> wurden von <i>Microsoft Office 97</i> abgeleitet. Wenn mit Office XP über die frühe Bindung gearbeitet werden soll, muss man folgendes machen: <br>
              1. Die originalen Office97-Komponenten deinstalieren (siehe <i>Projektoptionen | Packages | Borland Automation-Server-Beispielkomponenten</i>) <br>
              2. Über Typbibliothek importieren die VCL-Komponentenwrapper für Office XP erzeugen lassen

              Comment

              Working...
              X