Print Preview Only?
Hi,
Sorry, our developer that normally handles ReportBuilder is on holiday for
2 weeks, so I need a little help here:
We have a standalone Report Explorer application that is used to create
reports with. These reports are stored in a database using the Folders and
Items datasets of the Report Explorer component.
However, the application from which we view the reports must only do that,
it views, and nothing else. Allows no editing, creating, deleting, etc.
My question is: Can I use a TppReport to preview/print a stored report,
*without* needing to add a ReportExplorer and/or Designer to the project? I
can load the template on my own from the dababase, and load it into a
report's template using the LoadFromStream method. However, I fail to
understand how the SQL stored inside the template connects to a database.
Who controls the database connection? How can I override the template's
connection to use the new ADO connection of my project? How are the data
pipelines created or set up?
Thank you in advance!
Jako Grobler
Sorry, our developer that normally handles ReportBuilder is on holiday for
2 weeks, so I need a little help here:
We have a standalone Report Explorer application that is used to create
reports with. These reports are stored in a database using the Folders and
Items datasets of the Report Explorer component.
However, the application from which we view the reports must only do that,
it views, and nothing else. Allows no editing, creating, deleting, etc.
My question is: Can I use a TppReport to preview/print a stored report,
*without* needing to add a ReportExplorer and/or Designer to the project? I
can load the template on my own from the dababase, and load it into a
report's template using the LoadFromStream method. However, I fail to
understand how the SQL stored inside the template connects to a database.
Who controls the database connection? How can I override the template's
connection to use the new ADO connection of my project? How are the data
pipelines created or set up?
Thank you in advance!
Jako Grobler
This discussion has been closed.
Comments
Try setting the ReportExplorer.ItemAction property to iaOpenToPreview so the
reports will only show the preview when opened. This is a published
property and can be accessed from the Object Inspector in Delphi. You can
also change the ReportExplorer.ItemOptions to allow or deny the user's
editing privileges.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Once the templates are created, the connection name is embedded inside the
.rtm file. You will need to edit the template files by saving them as ASCII
text and changing every instance you find the old connection name to the new
one. Otherwise you will need to use the original database connection name.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com