序言:
RMReport是一款不错的打印控件,其中的GridReport做得很有特色(大多数选用RM的人就是被它吸引过去的),官方网站提供的试用版本有诸多限制,比如只能打印头两页、会多了一句未破解提示、导出功能只能导前六页等。
这次破解发生在2004年12月20日、21日,破解的是当时的3.51版本(本方法也适用于06年发布的5.0版,但自5.0后我便没有再关注过RM了),其时想在一个项目中试用RM的GridReport,但破解后又发现RM在交叉报表方面的诸多不足之处,所以最终放弃了RM改用其他的报表控件。
之所以在四年后的今天才公布破解手札,主要是考虑RM是一款商业控件,如果在当时发布对其最新版本的破解方法可能会引来不必要的麻烦,而多年之后的RM应该与原来的大有不同,现在公布破解手札已不会造成什么影响。本次手札详细介绍了对“只能打印头两页”的限制的破解过程和思路,其他的限制的破解方法与之类同。
需要特别声明的是,写这破解手札并不是为了炫耀我的破解技术有多高(相反我觉得我的技术很菜),而是为了告诉广大的控件和软件作者破解往往是在你意想不到地方进行突破,要想保住你的成果,需要下更多的苦功。
破解环境:
操作系统:Win2000,跟踪调试工作:Delphi6,再加上一个对Dcu作静态反编译的Dcu2Pas,就这么简单。
破解步骤一——代码跟踪:
在D6中安装了RM3.51后,新建一个Application,然后在主窗体中加入RMReport和一个Button,双击Button在OnC