Topic
Automated import binary files
Page d'accueil ' Communauté ' Automation et VBA ' Importation automatique de fichiers binaires
- Ce sujet contient 3 réponses, 2 participants et a été mis à jour pour la dernière fois par Norbert Bakkers, le il y a 19 années et 10 mois.
-
AuteurMessages
-
12.07.2005 à 01:22 #35035Norbert BakkersParticipant
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 à 02:31 #35033Bernhard KantzParticipantThere 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 à 00:09 #35034Norbert BakkersParticipantThanks.
The second option does exactly what I needed.13.07.2005 à 00:15 #35032Norbert BakkersParticipantI 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? -
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.