开发者

Right align image in RDLC report

I want to right align a proportionally scaled image, on a page in the report. Seems like images are always aligned left in their bounding box.

The image however, is dynamically assigned. So no, I can't just position the image 开发者_开发技巧in the right position.

All ideas welcome :)

Right align image in RDLC report


It's not possible.
However, you can dynamically set the padding-left value.
Doing that correctly is a pain, though.


Obtain the height and width of the image control, and apply this answer to add just as much white or transparent left padding to the picture itself to make it appear right-aligned inside the image control.
This will incur additional processing time and memory consumption, but saves you the pain the accepted answer is talking about.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜