Forum FlexPro – Discuss your topic!

Automated import binary files

Home > Community > Automation and VBA > Automated import binary files

Ansicht von 4 Beiträgen - 1 bis 4 (von insgesamt 4)
  • Autor
    Beiträge
  • #12433

    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?

    #8725
    Bernhard KantzBernhard Kantz
    Teilnehmer

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

    1) Create a FPScript formula using the ReadBinaryFile function.
    2) Use the BinaryDataLink object in VBA.

    
        Dim oBinaryDataLink As BinaryDataLink
        Set oBinaryDataLink = 
           ThisDatabase.RootFolder.Add("Demo", fpObjectTypeBinaryDataLink)
        oBinaryDataLink.FilePath = "...ImportfilterDemoFile.tst"
    ...
    

    See the FlexPro ImportFilter example.

    Support@weisang.com

    #8726

    Thanks.
    The second option does exactly what I needed.

    #8114

    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?

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