views:

49

answers:

2

I'm creating a new template to create reports from at a later date.

I know how to create one, and I know where to save it. However, the problem is this.

Everything that is created on the report uses the default font of Arial with a size of 10pt. I need to set mine to default to Tahoma 11pt.

I can create a mock title, mock tables, etc and save those to Tahoma 11pt, but any new controls that are used on any version of this report will default back to Arial 10pt.

How do I fix this?

+1  A: 

AFAIK, you cannot change these defaults for new report items when you drag-drop or add them from the toolbox.

The product team made some design decisions regarding default values of certain elements, in order to keep the generated XML for the RDL a little leaner.

If you take a peak at the RDL with notepad, notice that when you have default report items without any customization, you should not actually find the defaults explicitly stated in the XML - they're baked into the code and the renderer (design time and runtime) implicitly applies them if not overridden by an explicit value.

However, if this is a critical deal for you, you "might could" write an XSLT transformation (or .NET app that parses XML with XPATH) for the RDL file, that finds the nodes you want and add the appropriate attributes and values and spits out the new RDL file to disk. Kinda risky...

Also, if you are using the Report Wizard, you can customize the layout styles and templates used by the wizard (like the cool blue one everybody likes to use). Here's an article with more details: http://beacspeak.spaces.live.com/blog/cns!69043F34B6D40843!125.entry

HTH

Thiago

Thiago Silva
A: 

Thanks for the Lean design. I will say it does not matter when it comes for non-Graphic interface. But when you have to write many reports, and you don't like the default? It is kind of waist (AKA - non lean approach) for every report designer to go through all objects in order to changed Font and color (other properties) ...

Hope that will be changed in future...

Iris

related questions