以编程方式更改水晶报表公式 [英] Programmatically change crystal report formulas
本文介绍了以编程方式更改水晶报表公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以通过编程方式更改水晶报表的公式.我想在我的网络应用中列出报表的所有公式,并让用户可以修改它们.
I was wondering if it is possible to change formulas of a crystal report programmatically. I want to list all formulas of a report in my web app and give the user the possibility to modify them.
这可能吗?
推荐答案
using CrystalDecisions.CrystalReports.Engine;
namespace Craft
{
class Mate
{
Order_Print _r = new Order_Print();
void Preview()
{
foreach (FormulaFieldDefinition f in _r.DataDefinition.FormulaFields)
{
MessageBox.Show(f.Name);
f.Text = InputBox.Show("Input the formula for " + f.Name);
}
}
}
}
这篇关于以编程方式更改水晶报表公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文