How to change Dataset and DataSource on Fly?
StmpTab.DS1.DataSet := DM.ArcTab;
StmpTab.DS1.DataSource := DM.DSTab;
StmpTab.StTab.DataSets.Clear;
StmpTab.StTab.DataSets.Add(StmpTab.DS1);
StmpTab.StTab.LoadFromFile(DM.cPth + 'Templates\TabeVet.fr3');
StmpTab.StTab.ShowReport;
What's wrong?
TGD
StmpTab.DS1.DataSource := DM.DSTab;
StmpTab.StTab.DataSets.Clear;
StmpTab.StTab.DataSets.Add(StmpTab.DS1);
StmpTab.StTab.LoadFromFile(DM.cPth + 'Templates\TabeVet.fr3');
StmpTab.StTab.ShowReport;
What's wrong?
TGD
Comments
StmpTab.DS1.DataSet := DM.ArcTab;
StmpTab.DS1.DataSource := DM.DSTab;
StmpTab.StTab.LoadFromFile(DM.cPth + 'Templates\TabeVet.fr3');
StmpTab.StTab.DataSets.Clear;
StmpTab.StTab.DataSets.Add(StmpTab.DS1);
StmpTab.StTab.ShowReport;
I previously converted an old FR2.7 list report changing old [DM.ArcTab."CodTab"]
with [DS1."CodTab"] (picked from the dabase list in DesignReport), but no value printed. It means an empty report is displayed.
What's wrong?
TGD