如何以编程方式将Crystal Reports公式从Crystal语法更改为Basic语法 - 在Visual Studio 2005中 [英] How to programmatically change a Crystal Reports formula from Crystal Syntax to Basic Syntax - in Visual Studio 2005

查看:148
本文介绍了如何以编程方式将Crystal Reports公式从Crystal语法更改为Basic语法 - 在Visual Studio 2005中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以编程方式更改大量报表中的公式,例如此问题< a>,但我还需要更改Crystal语法和基本语法之间的公式。我不能看到任何方式在对象模型中做到这一点。可能吗?

I want to programmatically change formulas in a whole lot of reports, like in this question, but I also need to change the formula between Crystal Syntax and Basic Syntax. I can't see any way to do this in the object model. Is it possible?

我有一个称为周期的公式,已经存在于许多报告中,它目前在Crystal语法中定义。我想将公式设置为基本语法,并提供公式的更新文本。我不需要自动将当前定义从水晶转换为基本;我已经有了新的公式文本。

i.e. I have a formula called 'Period' that already exists in a whole lot of reports, and it's currently defined in Crystal Syntax. I want to set the formula to be in Basic Syntax and provide updated text of the formula. I don't need to automatically convert the current definition from crystal to basic; I already have the new formula text.

如果我简单地循环所有的报告,打开它们,然后设置FormulaFieldDefinition的Text属性,然后公式仍然设置为'水晶语法',将无法正确计算。目前我唯一的解决方案是手动打开每个报表,编辑公式,将下拉列表从Crystal语法更改为基本语法。

If I simply loop through all the reports, open them, then set the FormulaFieldDefinition's Text property then the formulas are still set to 'Crystal Syntax' and won't evaluate correctly. Currently my only solution is manually opening each report, editing the formula, changing the dropdown from Crystal Syntax to Basic Syntax.

推荐答案

I相信和@C​​odeByMoonlight确认这不可用。所以对于同一艘船上的任何人,我有许多报告要更新:享受手动过程,希望你永远不必改变回来!

I believe and @CodeByMoonlight confirms that this isn't available. So for anyone in the same boat as me with many reports to update: enjoy that manual process and hope you never have to change back!

这篇关于如何以编程方式将Crystal Reports公式从Crystal语法更改为Basic语法 - 在Visual Studio 2005中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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