FineReader Server 14 COM+ API sample: after adding the export format to the COM+ API sample, the export fails with the "format is not supported" error

Symptoms

The FineReader Server 14 COM+ API sample was modified by adding the new export format to the list of available export formats. For example, XLSX as OFF_XLSX format, as shown below:

The export then fails with the following error:

Format OFF_XLSX is not supported

Cause

The new format was added to the interface but was not described.

Resolution

You can see this message and when it is shown in the Processing.cs.

To describe the format, add its description in the following part of the Processing.cs:


As you can see, the check for the OFF_XLSX is added and it returns the XLSXExportSetting that are returned by the CreateCustomXLSXFormatSettings() method added.​ The code on the screenshot returns the default XLSX settings.

For the customization options refer to the ABBYY Online Help: https://help.abbyy.com/en-us/finereaderserver/14/api_help/outputfileformatenum

After the new export format was described, add it to the interface:

The processing is working as expected:

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed