FlexPro Forum – Discuss Your Topic!

ImportFilter – Debugger

Home > Community > Automation and VBA > ImportFilter – Debugger

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12403

    Dank das mitgelieferte Importfilter-Beispiel konnte ich einen eigenen Importfilter implementieren, der für alle Datenbanken verfügbar sein soll. Die Registrierung findet in der AutoExec-Prozedur und Deregistrierung in AutoExec. Da bei der Entwicklung das VBA-Projekt zurückgesetzt wird, muss ich wie in der Dokumentation beschrieben den Importfilter deregistrieren und noch einmal neu registrieren. Angenommen mein Importfilter ist fertig, ich weiss nicht, wie ich die eine Zeile Code für die Deregistrierung in AutoExec auskommentiere, weil sonst bekomme immer eine Fehlermeldung beim Starten oder Beenden von Flexpro und aus der Schleife komme nicht raus.

    Ich hoffe Sie verstehen was ich meine

    #8086

    Dank das mitgelieferte Importfilter-Beispiel konnte ich einen eigenen Importfilter implementieren, der für alle Datenbanken verfügbar sein soll. Die Registrierung findet in der AutoExec-Prozedur und Deregistrierung in AutoExec. Da bei der Entwicklung das VBA-Projekt zurückgesetzt wird, muss ich wie in der Dokumentation beschrieben den Importfilter deregistrieren und noch einmal neu registrieren. Angenommen mein Importfilter ist fertig, ich weiss nicht, wie ich die eine Zeile Code für die Deregistrierung in AutoExec auskommentiere, weil sonst bekomme immer eine Fehlermeldung beim Starten oder Beenden von Flexpro und aus der Schleife komme nicht raus.

    Ich hoffe Sie verstehen was ich meine

    #8646
    Bernhard KantzBernhard Kantz
    Participant

    If an import filter is to be available in all databases of one user or to all users in general, it is recommended that you implement it in the personal or global template database and to register it in the procedure AutoExec, which is executed automatically when the template database is loaded. De-registration can then be handled by the AutoExit procedure (see also auto-macros).

    Don’t forget to add the references (Microsoft Scripting Runtime, Microsoft Windows Common Controls).

    It’s possible that FlexPro invokes twice the AutoExec macro. In this case you should insert the code “On Error Resume Next” into the macro.

    support@weisang.com

    #8647

    I inserted the code “On Error Resume Next” into the macro AutoExec() and it works now.

    I still have a question. My ImportFilter is working well, but only on the Flexpro-Installation I´m working with. I´m new to VBA and have no idea how this ImportFilter would work for other installations on other computers.

    Thanks for the support

    #8648
    Bernhard KantzBernhard Kantz
    Participant

    In this case you have to copy the local or the global template database to the other system.
    The path of the local template database is:
    C:\Documents and Settings\User login name\Local Settings\Application Data\Weisang\FlexPro\7.0\Template.FPT
    The path of the global template database is:
    C:\Documents and Settings\All Users\Application\Weisang\FlexPro\7.0\Template.FPT.

    support@weisang.com

    #8649

    Noch eine Frage.. Was ist wenn das andere System schon irgendwelche Module und Formulare in seiner lokalen oder globalen Template Datenbank gespeichert hat. Wenn ich die Template.FPT überschreibe, dann werden sie wahrscheinlich alle gelöscht!!

    Wie kann man die alten Sachen (Module, Formulare, Makros) absichern?? und wie kann man das auch automatisieren ?

    Danke

    #8650
    Bernhard KantzBernhard Kantz
    Participant

    By using the Organize Macro Project Items dialog box, you can copy a macro project to use it in another database or another database template.

    On the Tools menu, point to Macro, and then click on Macros.
    Click on Organizer.
    Select the macro project you want to copy from one of the lists, and then click on Copy.
    FlexPro displays the macro projects used in the active database in the list on the left and the macro projects in the personal templates database in the list on the right.

    You can automate these steps using the VBE interface in VBA.

    support@weisang.com

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.