我们如何在水晶报告中设置打印日期? [英] How can we set the Print Date in the crystal report?

查看:59
本文介绍了我们如何在水晶报告中设置打印日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题是将 PrintDate 设置为来自UI的报告。

此功能在VB6中有效,但当它到来时到VB.NET它不工作。

在VB6中,我们能够以编程方式访问打印日期,如下所示:

I have a problem to set the PrintDate to the report from the UI.
This functionality is working in VB6, but when it comes to VB.NET it is not working.
In VB6 we can able to access the Print Date programmatically as given below:

Report.PrintDate



但是在 ReportDocument 中,我们没有那个属性。



那么我们怎么做呢?


But where as in ReportDocument we don''t have that property.

So how can we do this?

推荐答案

取代VB6的 PrintDate 是一个特定的 ParameterField

看看这个问题 [ ^ ]在另一个论坛上。它包括演示视频和代码示例的链接
The replacement to VB6''s PrintDate is a specific ParameterField
Have a look at the answer to this question[^] on another forum. It includes a demo video and a link to a code sample


尝试这样做 -

try doing this-
CrystalDecisions.Shared.SpecialVarType.PrintDate



或者使用RAS:


Or by using RAS:

CrystalDecisions.ReportAppServer.DataDefModel.CrSpecialFieldTypeEnum.crSpecialFieldTypePrintDate


我已经通过在Crystal Report中声明一个公式Field修复了此问题。以编程方式将值传递给该<。 br />


感谢您的回复: - )
I have fixed this Issue by declaring a formula Field in the Crystal Report.Passed the value to that programmatically .

Thanks to all for your response :-)


这篇关于我们如何在水晶报告中设置打印日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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