Hi,
I've just started to experiment with FlexCel reports (until now I've only used FlexCel for native .xlsx import and export)
My
first 'test' was a simple report in a standalone app using
TList<> as the data source, and the report was generated
perfectly.
I then incorporated the exact same code into my main application, but running it in here I got an error:
Error in cell Sheet1!A4: "Column "repVehCode" does not exist on table "Vehicles""
After
a lot of experimenting, changing compiler setting, removing units from
my code, I think I've tracked the problem down to the fact that my main
application uses AdvGridFilters. I seems that including either
UAdvGridExcelImport or UAdvGridExcelExport anywhere in my code causes
the problem.
I've further checked this by
modifying your demo program "ReportsFromLists" by adding
UAdvGridExcelImport to the uses clause. When I run the demo with this
extra unit in the unit clause, I get the following error:
The
names range "__Elements__" on the Excel template refers to DataTable
"elements" which is not defined. Verify that you added the dataset with
FlexCelReport.AddTable method.
If I then remove that unit from the uses clause, the report runs ok again!!
I
originally had an older version of FlexcelGridFilters (2.12), so have
downloaded the latest (2.16) but still have the same issue.
originally had an older version of FlexcelGridFilters (2.12), so have
downloaded the latest (2.16) but still have the same issue.
I'm using Delphi XE5, FlexCel 6.22 and TMSComponentPack 8.9.5.0
there some incompatibility between FlexCelReports and AdvGridFilters,
or have I somehow got some configuration settings incorrect??