Clearing Data tab's previous queries
Hi all,
(RB 6.03; D6)
If the end user opens the report designer in our app, then loads a report,
then closes the designer, then opens the designer again, the Data tab still
shows the query/pipelines from the previous report. They then have to right
click and delete each one to start fresh.
How do I clear the old query/pipeline programmatically prior to opening the
designer each time?
Thanks,
Vinnie Murdico
(RB 6.03; D6)
If the end user opens the report designer in our app, then loads a report,
then closes the designer, then opens the designer again, the Data tab still
shows the query/pipelines from the previous report. They then have to right
click and delete each one to start fresh.
How do I clear the old query/pipeline programmatically prior to opening the
designer each time?
Thanks,
Vinnie Murdico
This discussion has been closed.
Comments
get a clean report template.
uses
daIDE, daDatamodule;
procedure TForm1.Button1Click(Sender: TObject);
var
lDatamodule: TdaDataModule;
begin
lDataModule := daGetDatamodule(ppReport1);
lDataModule.Template.New;
ppDesigner1.Showmodal;
end;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Thanks -- I'll try that.
Best Regards,
Vinnie Murdico
Software with Brains, Inc.
http://www.softwarewithbrains.com