Cloning a Report (Assign)
Hi everybody !
Short:
Im trying to clone a report.
BUT:
When i try to create a New TppReport an then use
"NewReport.assign(OriginalReport)" i get the error:
"TppReport cannot be assigend to TppReport" ->???
Explanation:
To export an excel file with ExtraDevices i would like to
add a title (that works), an remove header & footer (work as well)
and later put all labels an DB fiels in the detail band of the newly
created Report.
Why do i need a new Report ? Im using a ReportViewer to give the user
a prieview of the Report and to keep the posibility of pdf export
i should not change the original Report.
Could anybody give me a hint? ( i apologise for my english!!! )
Thx
Kai Hennigs
Short:
Im trying to clone a report.
BUT:
When i try to create a New TppReport an then use
"NewReport.assign(OriginalReport)" i get the error:
"TppReport cannot be assigend to TppReport" ->???
Explanation:
To export an excel file with ExtraDevices i would like to
add a title (that works), an remove header & footer (work as well)
and later put all labels an DB fiels in the detail band of the newly
created Report.
Why do i need a new Report ? Im using a ReportViewer to give the user
a prieview of the Report and to keep the posibility of pdf export
i should not change the original Report.
Could anybody give me a hint? ( i apologise for my english!!! )
Thx
Kai Hennigs
This discussion has been closed.
Comments
Instead of trying to "clone" the report object using the assign method, I
would recommend saving the report template to stream and then loading it
into another report object. This would essentially create a clone of your
existing report. Take a look at the TppReport.Template.SaveToStream and
LoadFromStream routines.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com