Академический Документы
Профессиональный Документы
Культура Документы
Purpose:
We want to enhance our reports with a unique corporate
graphic. However, this object does not currently exist in the
layout toolbox. As a result, we want to add the graphic to
the toolbox as a new custom object. Once we add this
object, we can include it in future reports.
Purpose:
Management wants all future reports to use a corporate
template. However, they do not want to have to manually
select this template each time they create a report.
Therefore, we will create a custom template that contains
and add it to the list of available templates. Once we have
created this custom template, we can use it as the basis for
future reports.
<textItem>
<expression>PageNumber()</expression>
</textItem>
<textItem>
<text> -</text>
</textItem>
<style>
<CSS value="vertical-align:top;text-align:center;width:50%"/>
</style>
</tableCell>
<tableCell>
<textItem>
<expression>AsOfTime()</expression>
</textItem>
<style>
<CSS value="vertical-align:top;text-align:right;width:25%"/>
</style>
</tableCell>
</tableRow>
<style>
<CSS value="border-collapse:collapse;width:100%"/>
</style>
</table>
<style>
<CSS value="padding-top:10px"/>
</style>
</pageFooter>
<style>
<CSS value="background-
image:url(http://localhost/crn/samples/images/cover2.jpg);background-position:center
center;background-repeat:no-repeat"/>
</style>
</page>
</pageSet>
</layout>
</layoutList>
Results:
We created a custom template and added it to the list of
available templates. We can now use this template as the
basis for future reports.