开发者

dynamically setting the size of a textbox in a RDLC report

开发者 https://www.devze.com 2022-12-24 19:24 出处:网络
Can a textbox\'s width in a local RDLC report be set开发者_开发知识库 dynamically using C#? I would like to auto size the horizontal width of the text box based on the data it contains.Not easily.

Can a textbox's width in a local RDLC report be set开发者_开发知识库 dynamically using C#? I would like to auto size the horizontal width of the text box based on the data it contains.


Not easily. http://gotreportviewer.com/ has examples for how to generate the RDLC dynamically from C#. Alternatively, you can try to add a script to your report that does that. I am not sure that the size and coordinates are in fact writable properties, though. I suspect that they are read-only.


There's no solution for this. The dirty way is loading the rdlc xml file and edit it before loading the report: very dirty indeed.

0

精彩评论

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