dynamically setting the size of a textbox in a RDLC report
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.
精彩评论