Topic
Automated import binary files
Startseite ' Community ' Automation and VBA ' Automated import binary files
- Dieses Thema hat 3 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 19 Jahren, 10 Monaten von Norbert Bakkers aktualisiert.
-
AutorBeiträge
-
12.07.2005 um 01:22 Uhr #35035Norbert BakkersTeilnehmer
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?12.07.2005 um 02:31 Uhr #35033Bernhard KantzTeilnehmerThere 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.13.07.2005 um 00:09 Uhr #35034Norbert BakkersTeilnehmerThanks.
The second option does exactly what I needed.13.07.2005 um 00:15 Uhr #35032Norbert BakkersTeilnehmerI 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? -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.