repead band from dataset object
Hi,
i need some help.
I load some data from my dataset to fastreport and i want to repeat a band for each poition in / row in the dataset object gebäudepos
I don't know why my data aren't repeating. I thought that would happen automatically in this implementation
var ds = new DataSet();
var angebot = context.Angebot.FirstOrDefault(gw => gw.Id == angebotId);
var dskunde = ToDataTable(context.Kunde.Where(s => s.Id == angebot.KundeId).ToList(), "Kunde");
ds.Tables.Add(dskunde);
var dsangebot = ToDataTable(context.Angebot.Where(s => s.Id == angebot.Id).ToList(), "Angebot");
ds.Tables.Add(dsangebot);
var inventarpos = ToDataTable(context.InventarPosition.Where(s => s.AngebotId == angebot.Id).ToList(),
"InventarPosition");
ds.Tables.Add(inventarpos);
// GebäudePosition
var gebäudepos = ToDataTable(context.GebäudePosition.Where(s => s.AngebotId == angebot.Id).ToList(),
"GebäudePosition");
ds.Tables.Add(gebäudepos);
ds.Relations.Add(
"Angebot_GebäudePosition",
ds.Tables["Angebot"].Columns["Id"],
ds.Tables["GebäudePosition"].Columns["AngebotId"]
);
Any ideas?
Comments
Do you use FR 6 VCL?
I use .net
Sorry for the wrong channel.
I have seen it but i dont know how to change.