Multiple Data Pipeline
I am back to report writer again and I have one simple question :
What I am trying to do?
1. I have Report Builder Enterprise Edition(6.03) with Delphi 4.00
What I have done?
1. I have Open Report button on the form and I want load the report from the
File which works fine.
if OpenDialog.Execute then begin
lsFileName := OpenDialog.FileName;
UserReport.Template.New;
UserReport.Template.FileName := lsFileName;
try
if FileExists(lsFileName) then begin
UserReport.Template.LoadFromFile;
UserReport.Template.FileName := lsFileName;
end
else begin
UserReport.Template.New;
UserReport.Template.FileName := lsFileName;
end;
UserReport.Template.Format := ftASCII;
ReportDesigner.ShowModal;
except
MessageDlg('Report could not be loaded.' + #13#10 + #13#10 +
UserReport.Template.FileName, mtError, [mbOK], 0);
end;
end;
What is my problem?
1. After loading report ... I drop the dbText control on the form, and When
I goto Assign the PIPELINE or DataSource there is more then one DataSource
in the combobox that's where my user had a problem.
I don't know how to display only active reports pipeline.
Please help!!
Thanks
-Bhoj
What I am trying to do?
1. I have Report Builder Enterprise Edition(6.03) with Delphi 4.00
What I have done?
1. I have Open Report button on the form and I want load the report from the
File which works fine.
if OpenDialog.Execute then begin
lsFileName := OpenDialog.FileName;
UserReport.Template.New;
UserReport.Template.FileName := lsFileName;
try
if FileExists(lsFileName) then begin
UserReport.Template.LoadFromFile;
UserReport.Template.FileName := lsFileName;
end
else begin
UserReport.Template.New;
UserReport.Template.FileName := lsFileName;
end;
UserReport.Template.Format := ftASCII;
ReportDesigner.ShowModal;
except
MessageDlg('Report could not be loaded.' + #13#10 + #13#10 +
UserReport.Template.FileName, mtError, [mbOK], 0);
end;
end;
What is my problem?
1. After loading report ... I drop the dbText control on the form, and When
I goto Assign the PIPELINE or DataSource there is more then one DataSource
in the combobox that's where my user had a problem.
I don't know how to display only active reports pipeline.
Please help!!
Thanks
-Bhoj
This discussion has been closed.
Comments
you can use the property 'Visible' of the data pipeline component.
HTH,
Chris Ueberall;
Thanks for the reply but where did I put that code because its not me who
has a control over the pipeline or let me put it this way, Where do I
write that code after load the report from database/File or where?
Do I have to get the pipeline and then find out which one is active in
dataview[0] and then make all other invisible.
Please is there any code available to do that will be greatly appreciated?
Thanks
-Bhoj
all data pipelines on your form that have the property 'Visible' set to 'True' are visible to the user.
I don't know why you mean having no control over the pipeline.
It doesn't matter when you set them to not visible, but it should be at least before calling the designer.
regards,
Chris Ueberall;
of tppDBPipeLine controls false and it works great. You save my day .. I
will go for a break now.........
Until next time bye....
Thanks a lot...
-Bhoj