开发者

Print next to a text a picture or char(251) in report builder

开发者 https://www.devze.com 2022-12-26 23:46 出处:网络
I 开发者_JAVA百科draw a checkmark next to the some text in a Devexpress datagrid column, now I have to print it. Any Idea ?It depends on your printing engine. Usually you can hook an event in order to

I 开发者_JAVA百科draw a checkmark next to the some text in a Devexpress datagrid column, now I have to print it. Any Idea ?


It depends on your printing engine. Usually you can hook an event in order to do your custom drawing (for example if you use DevExpress's Printing System's TdxComponentPrinter then you have OnCustomDrawPage).

With other printing engines you have a more fine grained events (one per printed object). You can add your 'checkbox' by using a special font and a special character (eg. Wingdings - 0xFC or 0xFE) or even a special object for this if your reporting engine has one (for ex. FastReport has one).

OTOH, why don't you use a separate column for your checkmark? Anyway is a separate bit of information and normally it should reside in a separate column. And then, usually, the reporting engines will handle it much more easily.

HTH

UPDATE: I saw that you use ReportBuilder. I don't have experience with ReportBuilder but the above principles should (still) apply.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号