C#窗口应用程序中的Crystal报表 [英] Crystal report in C# window application

查看:122
本文介绍了C#窗口应用程序中的Crystal报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经生成了水晶报表,但是我想要报表标题Orignal,请重复告诉我这是怎么可能的

I have generate the crystal reports but i want the on report header Orignal ,Duplicate please tell me how it is possible

推荐答案

首先,您的应用程序需要确定是否该报告已打印过.
基于此,您可以使用此处描述的技术 [ ^ ]您可以在报表标题上设置原始"或重复".
First your application needs to determine whether the report was printed before.
Based on this you can use the technique described here[^] you to either set "Original" or "Duplicate" on the header of your report.


在页面标题中添加公式
写出以下公式



全局数字var num;
num:= num + 1;
if(num = 1)
然后(原始")
其他
("DUPLICATE")


因此,对于第一页,num的值将为1,因此它将输出ORIGINAL,对于其余页面,其将打印DUPLICATE
add a formula in page header
write the following formula



global numbervar num;
num:=num+1;
if(num=1)
then("ORIGINAL")
else
("DUPLICATE")


So for the first page the value of num will be one and hence it will print ORIGINAL and for the rest of the page it will print DUPLICATE


您的问题不清楚,请使其易于理解.
your question is not clear please make it understandable.


这篇关于C#窗口应用程序中的Crystal报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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