Retrieve only the layout from Stream
Hello,
I'm developing a software in wich some reports may have different versions
to different users.
To the reports where no DataModules are needed, the
Report.Template.LoadFromStream worked fine, it loads either the layout and
the queryies from the stream, as expected.
The problem is when I need to retrieve only the layout from the stream. In
this cases, I have a DataModule full of ClientDataSets and DataPipelines and
I want to keep all the connections between the Report and the Pipelines,
retrieving only the layout.
Did I explain my problem right?
Thanks in advance
Ricardo Acras
I'm developing a software in wich some reports may have different versions
to different users.
To the reports where no DataModules are needed, the
Report.Template.LoadFromStream worked fine, it loads either the layout and
the queryies from the stream, as expected.
The problem is when I need to retrieve only the layout from the stream. In
this cases, I have a DataModule full of ClientDataSets and DataPipelines and
I want to keep all the connections between the Report and the Pipelines,
retrieving only the layout.
Did I explain my problem right?
Thanks in advance
Ricardo Acras
This discussion has been closed.
Comments
I'm sorry, but I am having a little trouble understanding what it is you are
trying to accomplish. If you want to preserve all connections to the report
just not use them, you could set the datapipeline's visible property to
false temporarily if you need to. What do you mean by retrieving only the
layout of the report? Please elaborate on the issue you are having.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I?m sorry if I wasn?t clear. Maybe that?s because I?m brazilian and my
English is a little unpracticed! :-)
Let me try to be more specific.
I have some reports in my system that can change the layout (i.e. the
position of the components in the report) when running in different
versions (versions of my software).
The issue is that I want to save all the different possible layouts in
the database. I already save my reports with saveToStream procedure.
The problem is that when I try to retrieve the templates from the
database, it loads without any error but I loose the connections betwen
the report and the pipelines.
It?s important to say that the environment that I draw my reports is
different than the environment that I retrieve them.
In one hand I have the designer, in the other hand I have the software
where the report will be viewed. It may seem to be a bad thing to do
but, believe me, it?s necessary.
thanks for your help
Ricardo
Thanks for re-explaining for me. Your English is great . When
ReportBuilder loads a template, it looks for the datapipeline to connect to
by searching through a parent form or datamodule. This is done strictly by
the name of the datapipeline. Make sure your datapipelines are named
correctly and reside on a form or datamodule before loading your templates
from the database. This should then keep the connection valid.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thank you very much for your cooperation.
Ricardo