Skip to main content
One advantage of using an XML file is that you don’t have to edit the script code or the Document Definition. All modifications can be made by editing the XML file, which is much simpler than editing the script code. However, the XML file should be located on every FC processing station. And you will also have to synchronize it manually on all of the FC stations from which data is to be exported to M-Files. To specify export settings in an XML file:
  1. As your export script, use the M-Files - ExportScript - Configure by XML.cs from the Samples folder of the connector distribution package.
  2. Create an XML file named <Project name>_<Document Definition name>.xml. This naming scheme will allow you to have multiple XML files for different Document Definitions.
  3. In the registry of the computer with a processing station, locate HKEY_LOCAL_MACHINE\SOFTWARE\ABBYY\FlexiCapture\12.0\Connectors\MFiles and in its “XmlFolder” string value field, specify the path to the folder where the settings file is to be stored.
  4. In the registry of the computer with a processing station, locate the HKEY_LOCAL_MACHINE\SOFTWARE\ABBYY\FlexiCapture\12.0\Connectors\ and set its “MFiles” string value field to true.
For an example of an XML configuration file with detailed comments, please see the default.config.xml file that is located in the Samples folder of the connector distribution package. In the code of M-Files - ExportScript - Configure by XML.cs, you can also find some other possible naming schemes for your XML files.