Help - Search - Members - Calendar
Full Version: creating a dataset dynamically and assignning it t
Fast Reports forum > Fast Reports Products > FastReport 2.xx CLX
hg080
hi all,

well, i have this problem i am creating a simple dataset set on the fly like this :-
objSimpleDS := TSimpleDataSet.Create(nil);

the problem is when i create it with nil the dataset doesn`t appear in the designer of th reports, i have to create it like this in order to view it in the designer:-
objSimpleDS := TSimpleDataSet.Create(form1);

anyone knows how to solve this problem,
i need to create the database with nil.
AlexTZ
Dataset must have an Owner (form or datamodule) and a Name in order to work in FR.
hg080
i want to create them with nil, because my dataset is created in unit that is called through a dll, which means that my exe is separated from the unit that i use to interact with the database.
so because of that i am creating it with the nil parameter.

if there is no way that the designer recognize the dataset except with creating the dataset with an owner please tell me.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.