以编程方式更改晶体报告公式

Mic*_*hal 4 crystal-reports

我想知道是否有可能以编程方式更改水晶报告的公式.我想在我的网络应用程序中列出报告的所有公式,并为用户提供修改它们的可能性.

那可能吗?

Mic*_*uen 5

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);
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)