Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Delphi: Fillform mit TMozillabrowser

Empfohlene Antworten

Veröffentlicht

Hallo!!!

Ich habe folgende Funktion (die Formularfelder von Internetseiten mit Informationen füllen soll.):

function FillForm(WebBrowser: TMozillaBrowser; FieldName: string; Value: string): Boolean;  

var  

  i, j: Integer;  

  FormItem: Variant;  

begin  

  Result := False;  

  //no form on document  

  if WebBrowser.OleObject.Document.all.tags('FORM').Length = 0 then  

  begin  

    Exit;  

  end;  

  //count forms on document  

  for I := 0 to WebBrowser.OleObject.Document.forms.Length - 1 do  

  begin  

    FormItem := WebBrowser.OleObject.Document.forms.Item(I);  

    for j := 0 to FormItem.Length - 1 do  

    begin  

      try  

        //when the fieldname is found, try to fill out  

        if FormItem.Item(j).Name = FieldName then  

        begin  

          FormItem.Item(j).Value := Value;  

          Result := True;  

        end;  

      except  

        Exit;  

      end;  

    end;  

  end;  

end; 

Leider bekomme ich folgende Fehlermeldung: Library not registered und dann wird unter Delphi 7 Personal die Unit: MOZILLACONTROLLib_TLB geöffnet.

Was mache ich falsch (wie kann ich die Bibliothek (Library) registrieren?)

Guckst du hier:

Installation should be a straightforward procedure:

1. Install or build mozilla

2. Open a DOS prompt, change to your Mozilla bin directory (e.g. "cd c:\mozilla\bin")

3. Type "regsvr32 mozctlx.dll"

Note that building Mozilla will usually register the control for you unless you have set MOZ_NO_ACTIVEX_REGISTRATION to disable this behaviour.

If regsvr32.exe is not in you path use the "Find Files..." facility of 95/98/NT to locate it and run it using its the full path.

Do not register mozctl.dll! The new mozctlx.dll now contains all the PATH fixup magic that ensures the control works correctly.

Das hilft mir nicht weiter - die Fehlermeldung bleibt erhalten.

An welcher Stelle in deinem Programm tritt der Fehler genau auf?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.