如何规范可打印的数据网格行为 [英] How to biuld a printable datagrid behavior

查看:100
本文介绍了如何规范可打印的数据网格行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我目前正在处理一个需要打印报告的项目,我想从任何项目控件(例如网格视图或列表视图)生成报告,并指定我希望打印的列(默认情况下打印所有列).

我还想为非文本字段(例如将在打印文档上呈现的图像)生成可打印的列.

打印类或行为将从项目控件收集信息并生成固定文档,该文档将显示在文档查看器中进行打印.

我认为,如果将其设计为一种行为,则可以将其附加到任何项目控件上,从而变得可重用和可扩展.

请任何有关如何进行的建议将不胜感激

问候
Ronald

Hello I am currently working on a project that requires printing reports, I would like to generate reports from any itemscontrol like a grid or list view and specify the columns I wish to print,(by default print all columns).

I would also like to generate printable columns for nontext fields like images which will be rendered on the print document.

The print class or behavior will collect information from the itemscontrol and generate a fixeddocument that will be displayed in a document viewer for printing.

I am thinking that if it is designed as a behavior it can be attached to any items control and thus become reusable and extendable.

Pls any advice on how to proceed will be greatly appreciated

Regards
Ronald

推荐答案

整个想法是,您需要在打印时间上设置选定列的不同行为.希望以下链接能给您一些想法.


http://helpondesk.blogspot.com/2009/01/do-not-print-print-button-on-printed.html [ http://helpondesk.blogspot.com/2008/11/how-to-print-specified-div-only-rather.html [
The whole idea is that you need to set different behavior of selected columns on print time. hopefully the following link give you some idea.


http://helpondesk.blogspot.com/2009/01/do-not-print-print-button-on-printed.html[^]

http://helpondesk.blogspot.com/2008/11/how-to-print-specified-div-only-rather.html[^]

please post the answer if you able to solve this :)


这篇关于如何规范可打印的数据网格行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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