跳轉到主要內容
此物件可用來調整將已辨識文字匯出為 XLS/XLSX 格式時所使用的 Parameter。此物件的指標會作為輸入 Parameter 傳遞至匯出方法,因此會影響匯出結果。新建立的此類型物件,其所有屬性皆會設為合理的預設值。如需瞭解各屬性預設值的詳細資訊,請參閱對應屬性的說明。 XLExportParams 物件是可持久化物件。這表示可將物件的目前狀態寫入持久性儲存體。之後,可藉由從持久性儲存體讀取物件狀態來重新建立該物件。以下方法可提供物件的持久化功能: Linux:SaveToFileLoadFromFile Windows SaveToFileLoadFromFileSaveToMemoryLoadFromMemory

屬性

,唯讀

傳回 Engine 物件。

此屬性決定識別文字匯出至 XLS 格式的方式。可設定為 MS Excel 5、MS Excel 8 或兩者皆選。匯出至 XLSX 格式時,此屬性的值將被忽略。

此屬性的預設值為 XLFF_DoubleStream。

此屬性可讓您設定匯出至 XLSX 格式時保留原始文件表格版面配置的模式。若將此屬性的值變更為非預設常數,則 TablesOnlyRemoveFormatting OnePagePerWorksheet WriteRunningTitles 屬性將被忽略。

若匯出至 XLS 格式,此屬性僅允許使用預設值。

此屬性的預設值為 XLLRM_Default。

當此屬性為 TRUE 時,僅將表格區塊中的識別文字匯出至 XLS/XLSX 格式。

LayoutRetentionMode 屬性等於 XLLRM_ExactDocument 或 XLLRM_ExactLines,則此屬性將被忽略。

此屬性的預設值為 FALSE。

將此屬性設為 TRUE 時,ABBYY FineReader Engine 將移除匯出至 XLS/XLSX 格式之文字的格式設定。

LayoutRetentionMode 屬性等於 XLLRM_ExactDocument 或 XLLRM_ExactLines,則此屬性將被忽略。

此屬性的預設值為 FALSE。

指定文件的每個頁面是否匯出至 XLSX 檔案的個別工作表。

LayoutRetentionMode 屬性等於 XLLRM_ExactDocument 或 XLLRM_ExactLines,則此屬性將被忽略。

此屬性的預設值為 FALSE。

指定識別文字中的數值是否以數字而非字串形式匯出至 XLS/XLSX 格式。

此屬性的預設值為 TRUE。

指定是否將頁首標題儲存至輸出的 XLS/XLSX 檔案。

LayoutRetentionMode 屬性等於 XLLRM_ExactDocument 或 XLLRM_ExactLines,則此屬性將被忽略。

此屬性的預設值為 TRUE。

,read-only

Specifies if the author, subject, title, and keywords of the document should be written into the output file. These parameters of the document are defined in thesubobject of theobject.

Specifies whether to use right-to-left worksheet direction in exported documents.

This property is FALSE by default.

Specifies if original colors of text are retained during export of the recognized text to XLSX format.

The text color can be retained during export only if theISynthesisParamsForPage::DetectTextColorproperty was set to TSPV_Yes or TSPV_Auto during page synthesis.

This property is FALSE by default.

指定匯出為 XLSX 格式時儲存背景色彩的模式。僅可儲存表格儲存格的背景色彩。無論此屬性的值為何,表格外文字的背景色彩均不會被儲存。

只有在頁面合成期間,ISynthesisParamsForPage::DetectBackgroundColor屬性設為 TSPV_Yes 或 TSPV_Auto 時,才能在匯出時保留背景色彩。

此屬性的預設值為 BCM_DontSave。

Specifies page orientation during export in XLSX format. The value of this property is ignored, if the PaperSize property is XLPS_NotSpecified.

By default, the property is set to POM_Auto.

The POM_MostFrequent constant is not available for this property.

Specifies one of the standard paper sizes for XLSX file. If this property is XLPS_NotSpecified, the value of the PageOrientation property is ignored.

By default, the value of this property is XLPS_NotSpecified.

Specifies whether pictures must be written in files in XLSX format.

This property may be set to TRUE only if the LayoutRetentionMode property is equal to XLLRM_Default. If the LayoutRetentionMode property is set to XLLRM_ExactDocument or XLLRM_ExactLines, pictures will be written into the output file automatically.

The default value is FALSE.

Picture embedding is not supported for XLS format.

,read-only

Specifies the image format and JPEG quality which should be used for embedded pictures in the output file.

Picture embedding is not supported for XLS format.

方法

名稱說明
CopyFrom以另一個物件中對應屬性的值,初始化目前物件的屬性。
LoadFromFile從磁碟上的檔案還原物件內容。
LoadFromMemory <Note>:僅限 Windows。 </Note>從全域記憶體還原物件內容。
SaveToFile將物件內容儲存至磁碟上的檔案。
SaveToMemory <Note>:僅限 Windows。 </Note>將物件內容儲存至全域記憶體。
XLExportParams 物件圖

輸出 Parameter

此物件是 Engine 物件的 CreateXLExportParams 方法的輸出 Parameter。

輸入 Parameter

此物件會作為輸入 Parameter 傳遞給下列方法:

範例

此物件用於下列 Linux 和 Windows 程式碼範例:CommandLineInterface

另請參閱

調整匯出參數 使用設定檔 使用屬性