FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

Automated import binary files

Startseite ' Community ' Automation and VBA ' Automated import binary files

Anzeigen von 4-Stellen - 1 bis 4 (von insgesamt 4)
  • Autor
    Beiträge
  • #35035
    Norbert Bakkers
    Teilnehmer

    I use the following code to import binary files in Flexpro:
    ImportSettings.ImportCompleteFile = True
    ActiveDatabase.RootFolder.Import FName, “Binary files (*.*)|*.*”
    The problem is that it will display the ‘Binary Data Set ‘BinaryDataSet’ Properties’ dialog box.
    Is it possible to import binary data in a Flexpro dataset without having any visible dialog box?

    #35033
    Bernhard Kantz
    Teilnehmer

    There are two possibilities to import binary data files with VBA:

    1) Create a FPScript formula using the [b]ReadBinaryFile[/b] function.
    2) Use the [b]BinaryDataLink[/b] object in VBA.
    [code]
    Dim oBinaryDataLink As BinaryDataLink
    Set oBinaryDataLink =
    ThisDatabase.RootFolder.Add(“Demo”, fpObjectTypeBinaryDataLink)
    oBinaryDataLink.FilePath = “…ImportfilterDemoFile.tst”

    [/code]
    See the FlexPro [b]ImportFilter[/b] example.

    Support@weisang.com

    #35034
    Norbert Bakkers
    Teilnehmer

    Thanks.
    The second option does exactly what I needed.

    #35032
    Norbert Bakkers
    Teilnehmer

    I use the following code to import binary files in Flexpro:
    ImportSettings.ImportCompleteFile = True
    ActiveDatabase.RootFolder.Import FName, “Binary files (*.*)|*.*”
    The problem is that it will display the ‘Binary Data Set ‘BinaryDataSet’ Properties’ dialog box.
    Is it possible to import binary data in a Flexpro dataset without having any visible dialog box?

Anzeigen von 4-Stellen - 1 bis 4 (von insgesamt 4)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.