Seagate Crystal 生成的Sql文件 和 Crystal Report 10的问题
客户要求使用VS2005 Crystal Report来完成水晶报表的制作,但有些要求.
客户使用Seagate Crystal设计水晶报表的时候可以生成一个SQL文件,这个文件包含了该报表所对应的数据源,而当报表设计完成后,他可以通过手动修改这个SQL文件同时在水晶报表RPT文件中增加和他向SQL文件中加入的字段别名相同的字段,从而达到向报表插入新字段的目的.
我使用VS2005自带Crystal Report设计(免费的那种~)的时候并无法为一个RPT的数据源生成一个SQL文件,我只知道水晶报表数据源可通过Push或者Pull模式来完成,并没有存在单独的SQL文件.
于是可以提出是否可以购买一个Crystal Report 10来设计报表. 但我不知道是否一个标准版或者开发版(专业版..等等等)的Crystal Report 10是否支持这样的功能.
如果利用VS2005 自带的Crystal Report Designer也可以有解决方案的话,忘不吝赐教.
客户原文如下:
I develop Crystal Reports using Seagate (Crystal’s Vendor) Crystal Reports NOT VS2005. When I develop in Crystal, I create a connection directly to the DB and create a NEW COMMAND and I have a separate sql file that has my crystal alias names (e.g. the field names). At any time I can change the sql file AND the Crystal DB Connection AND the COMMAND then I can add / remove fields to the report WITHOUT having to recompile the app.
The sql file has the filter parameters (e.g. the Batch ID) that pass to the sql statement or multiple statements. The fields in the sql statements have alias names. The alias names need to match EXACTLY the alias names in the rpt. So if developer updates the sql statement (or statements) then the rpt will need to be updated to (this is not automatic, but the developer can do it). This process is A LOT quicker than having the report sql in the app code and recompiling the app with each rpt change.
描述不尽完整,希望有经验的朋友能帮个忙~~
感谢.