报告设计模板 [英] Report Design Templates

查看:228
本文介绍了报告设计模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用DevExpress XtraReports 2009v3.3,虽然我可以通过代码中的各种格式化对象来实现我想要的,但是必须有一个(更好/更少的无痛/可维护/可视化)方式来实现我所需要的...



我需要制作一份报告,设计用于最终用户'look&感觉'。我们有很多公司使用我们的软件,他们都需要不同的设计模式/模板来进行报告。例如 - 单个报告,取决于谁登录(我们知道他们属于什么公司)应用报告应该使用的模板。



例如,一些要求(每个最终用户/公司)包括:



自己的徽标(位于正确的位置),
边距特定大小
自己的字体(或字体选择)
交替颜色方案
特定行/列是特定颜色(永久和基于值)
值的格式化,例如欧洲用户将获得欧元,uk用户在某些列/单元格/行上获得磅数。



我知道有一个最终用户报告设计器,但这不是我们需要的 - 我必须为报告创建模式/模板设计,然后在运行时应用它。



对于多个repx文件也使用保存/加载布局不是最佳解决方案更改报告将导致大量额外的工作,因为您必须更新每个repx模板文件。

解决方案

可以创建不同的报告,并通过 XtraReport.SaveLayout 方法,并使用这些 repx文件作为模板



类似但不同的问题



要求开发者表达,他们基本上说没有任何布局抽象可以做我所需要的。


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.

解决方案

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.

这篇关于报告设计模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆