Compiler error in sampl app "AWXReportsSample" (Firemonkey)

Questions and answers on how to use AXWReports

Compiler error in sampl app "AWXReportsSample" (Firemonkey)

Postby Emil1957 » Wed Dec 13, 2017 10:31 am

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,
IniFiles, Contnrs, Db,
AXWFormulaTypes, AXWTokenizer, AXWEncodeFmla, AXWPaginateDoc,
AXWDefs, AXWUtils, AXWCharRun, AXWLogParas, AXWLogEditor, AXWFields,
// Wong reference??
AXWErrors, AXWXLSRWII, AXWEvaluateFmla, AXWDocProps, AXWMask, AXWGraphics,
AXWGraphicTypes, AXWReportUtils, AXWReportDataSet, AXWHTMLTypes, AXWGDIAbstract,
{$ifdef MSWINDOWS}
Posts: 4
Joined: Tue May 13, 2014 8:32 am

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

Postby larsa » Thu Dec 14, 2017 8:59 am


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
Site Admin
Posts: 640
Joined: Mon Jun 27, 2005 9:30 pm

Return to AXWReports

Who is online

Users browsing this forum: No registered users and 1 guest