Page 1 of 1

Compiler error in sampl app "AWXReportsSample" (Firemonkey)

Posted: Wed Dec 13, 2017 10:31 am
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}

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

Posted: Thu Dec 14, 2017 8:59 am
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.