Report Design Templates

旧城冷巷雨未停 提交于 2020-01-24 20:52:25

问题


We are using DevExpress XtraReports 2009v3.3 and although I can achieve what I want through various formatting objects in code, there must be a (better/less painless/maintainable/visual) way of achieving what I require...

I need to produce a report, designed to end-user 'look & feel'. We have many companies which use our software and they all require different design schema's/templates for their reports. For example - a single report, depending on who logs on (we know what company they belong to) apply the template the report should use.

As an example, some of the requirements (per end-user/company) include:

their own logo (positioned in the correct place), Margins being of specific size their own fonts (or font choice) alternating colours schemes Specific rows / columns being particular colours (both permanently and based on value) Formatting of values, for example a european user would get euro, a uk user gets pounds on certain columns/cells/rows.

I know there is an End-User Report Designer, however this isn't what we require - I must create the schema/template design for a report then apply it at runtime.

Also using save/load layout for multiple repx files isn't the best solution as a change to the report would cause a lot of extra work as you would have to update each repx template file.


回答1:


It is possible to create different reports and save it to the repx format via XtraReport.SaveLayout method and use these repx files as template.

Similar but different question

I asked dev express and they basically said there isn't any 'layout abstraction' that would do what I require.



来源:https://stackoverflow.com/questions/4051225/report-design-templates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!