FlexPro Forum – Discuss Your Topic!

Automated import binary files

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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
    Participant

    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?

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