如何在RDLC报告中添加摘要字段?

时间:2011-08-11 07:56:38

标签: c# winforms

我在Win-form中使用RDLC报告。我想将下面的页面添加为摘要。这意味着,我想在报告中将此页面添加为单独的页面。

我的朋友在Fox专业工作。他说它可以在摘要字段中,它像一个页脚。但无法找到。请帮助我。

              The Committee has considered the following aspects before finalizing the attendance%      
    for the B.Sc H&HA I year I semester Students,   

           1.    Students involved in attending ODC, Exhibitions and other functions        
        deputed by the college.

          2.    Students who had shortage of attendance were instructed to attend the classes in        
         the weekend / Holidays. Classes were conducted by the staff who 
        were stationed at the Institute.

                 As directed by the principal, in the interest of the students and due to the semester pattern,                                     
    It has been decided to consider overall attendance % for the eligibility to write                               
    the NCHM semester examination 2011. 


(Mr.Elangovan)   (Mr.Mathew)    (Mr. Senthil Kumar)      (Ms. Sharmila)     ( Ms. Parimala)    (Mr. Thirulogchander)                                                





                            (PRINCIPAL)                 

3 个答案:

答案 0 :(得分:1)

听起来您只需要在摘要文本之前添加分页符:

http://msdn.microsoft.com/en-us/library/ms251701(v=vs.80).aspx

答案 1 :(得分:1)

是的,Foxpro使这样的事情非常简单......不知道你的数据源,以及你是否可以通过在每行的输出中添加一个列/字段来进行调整。我会添加一个blob列(或FoxPro的Memo),你可以在其中转储一堆文本。然后在要打印的数据的最后一条记录上打印此列。由于以前的任何记录都不存在,否则它不会与任何其他内容发生冲突。然后,正如丹尼尔所说,你可以抛出一个强制分页符,以便这些内容显示在它自己的页面上。

答案 2 :(得分:1)

我同意在您的报告中添加分页符并将上面的信息页面添加到该页面可能会更容易。我不知道您使用什么来创建报表Visual Studio 2005/2008,但这里有一些关于在VS 2005中添加分页符的说明。

How to Set Page Breaks

Defining Page Size and Page Breaks

我不确定您的报告是如何设置的,但如果您的说明指定了以下内容:

To add a page break to a report item
Right-click the report item and then click Properties.

**Note**
Item page breaks apply only to the report items rectangle, table, matrix, list, and chart.
On the General tab, for Page breaks, select Insert a page break before this list (rectangle, table, or matrix) or Insert a page break after this list (rectangle, table, or matrix).

所以请记住,将分页符应用到项目中它必须是一个矩形,表格等。我刚刚在VS2005中进行了测试并添加了一个矩形,然后在里面放置一个文本框,其中包含上面的数据和它将它放在报告中的单独页面上。

希望这会有所帮助。