如何定位RDLC报表项目编程 [英] How to position RDLC Report item Programmatically

查看:278
本文介绍了如何定位RDLC报表项目编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过在搜索vs2005.i在google.No正确答案found.How通过报告parmenters设置一个RDLC报表项的位置C#编码设置RDLC报表项目(文本)的screencordinates?
任何形式的帮助将是非常美联社preciated。
谢谢

I want to set the screencordinates of rdlc report item(textbox) through c# coding in vs2005.i searched in the google.No proper answers found.How to set the location of an rdlc report item through report parmenters? Any kind of help will be highly appreciated. Thanks

推荐答案

如果你用记事本打开一个RDLC文件或任何XML编辑器,你可以看到,它只是XML。如果你给元素的ID,那么你可以使用XPath找到的元素。然后,所有你需要做的就是更新它的左上节点在XML。

If you open an rdlc file in notepad or any xml editor you can see that it is just xml. If you give the element an id then you can use xpath to find the element. Then all you need to do is update it's top and left nodes in the xml.

的基本步骤是:


  • 打开RDLC到一个新的XmlDocument。

  • 找到包含要移动(这可以用一个比较简单的XPath查询来完成)元素节点

  • 修改节点与新线。

  • 保存XML文档

  • 再修改RDLC加载到报表查看器。

这不是太容易,但一旦你开始使用XML打你几乎可以做任何事情RDLC

It's not overly easy but once you start playing with the xml you can do almost anything with RDLC.

这篇关于如何定位RDLC报表项目编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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