I try to work with DBF in my report. Everything is OK, if I create report via Designer. But I have problem with loading the file from source code.
My source code:
Code: Select all
StiReport report = new StiReport();
StiDBaseSource db = new StiDBaseSource(@"C:\ZACI.DBF", "Zaci", "Zaci", 1250);
db.FillColumns();
report.Dictionary.DataSources.Add(db);
report.Dictionary.Synchronize();
…
Pleas, help me solve my problem.
Thank you,
Petr