Compiler error in sampl app "AWXReportsSample" (Firemonkey)

Questions and answers on how to use AXWReports
Post Reply
Emil1957
Posts: 4
Joined: Tue May 13, 2014 8:32 am

Compiler error in sampl app "AWXReportsSample" (Firemonkey)

Post by Emil1957 »

I tried to compile the sample app "AWXReportsSample" (for Firemonkey), but got a compiler error (in German):

[dcc32 Fataler Fehler] DOCXReadWriteVcl.pas(35): F2613 Unit 'Dialogs' nicht gefunden.

which means

[dcc32 Fatal Error] DOCXReadWriteVcl.pas(35): F2613 Unit 'Dialogs' was not found.

The reason seems to be in the unit "AXWReport", there the unit „DOCXReadWriteVCL“ is refeferenced. In a Firemonkey project, should it not be „DOCXReadWriteFMX“ ?

uses Classes, SysUtils, Math,
{$ifndef DELPHI_5}
StrUtils, Types,
{$endif}
IniFiles, Contnrs, Db,
AXWFormulaTypes, AXWTokenizer, AXWEncodeFmla, AXWPaginateDoc,
AXWDefs, AXWUtils, AXWCharRun, AXWLogParas, AXWLogEditor, AXWFields,
// Wong reference??
DOCXReadWriteVcl,
//
AXWErrors, AXWXLSRWII, AXWEvaluateFmla, AXWDocProps, AXWMask, AXWGraphics,
AXWGraphicTypes, AXWReportUtils, AXWReportDataSet, AXWHTMLTypes, AXWGDIAbstract,
{$ifdef MSWINDOWS}
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Compiler error in sampl app "AWXReportsSample" (Firemonkey)

Post by larsa »

Hello

Yes, you are correct. Change DOCXReadWriteVCL to DOCXReadWriteFmx. I think you also must change TDOCXReadWrite to TDOCXReadWriteFmx in a couple of places.
Lars Arvidsson, Axolot Data
Post Reply