Loading a band from file?
Hi,
we are using RB 7.04 with Delphi5.
What I want to do: create a default header band in a single file. Every
report should use this file for its header. Then, if I want to change the
header I just have to change my header band file once.
Is that possible?
--
Regards
Sven Langenkamp
CT Datentechnik GmbH
Eschenstr. 2
D-31582 Nienburg/Weser
Germany
Telefon: +49 [0] 5021 - 9724-15
Telefax: +49 [0] 5021 - 9724-18
http: www.ctdatentechnik.de
e-mail: langenkamp@ctdatentechnik.de
we are using RB 7.04 with Delphi5.
What I want to do: create a default header band in a single file. Every
report should use this file for its header. Then, if I want to change the
header I just have to change my header band file once.
Is that possible?
--
Regards
Sven Langenkamp
CT Datentechnik GmbH
Eschenstr. 2
D-31582 Nienburg/Weser
Germany
Telefon: +49 [0] 5021 - 9724-15
Telefax: +49 [0] 5021 - 9724-18
http: www.ctdatentechnik.de
e-mail: langenkamp@ctdatentechnik.de
This discussion has been closed.
Comments
1. Create a Header layout (myHeader.rtm)
Create a report layout with no header/footer. Size the detail band to be the
height of the "header". Add labels, etc.
Save the layout as myHeader.rtm
2. Use the Header layout in a report
Add a subreport to the Header band of the report. From the Designer, access
the workspace for the subreport and then select File | Load Subreport
Or programmatically load the header at runtime (to make sure you use the
latest version).
mySubreport.Report.Template.FileName := 'c:\myHeader.rtm'
mySubreport.Report.Template.LoadFromFile;
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com