我的报表是用QRport做的,可是在运行时为什么预览里的打印按钮有时是可用的,有时又不可用?

解决方案 »

  1.   

    运行一下demo看看,如果也这样就是安装的问题了
      

  2.   

    不知大家说的安装是指什么?
    我只不过是在进行测试报表功能而已,软件还没有完成,没有什么安装啊;WWWWA(aaaa) :
    TQuickRep控件有预览的功能,但是在调用预览的方法后所显示的
    预览窗体中的打印按钮有时会变成不可用,而且又没有出错(也没有规律可寻)。主要是TQuickRep没有代码的,我无法知道为什么会这样?
      

  3.   

    如果你用的是DELPHI6或是7的话,就自带了最新版的了
      

  4.   

    我查了帮助
    TCustomQuickRep.PreviewModalprocedure PreviewModalDescriptionUse Preview to generate the report and bring up an on screen preview of it. From the preview window the user can choose to print the report.When calling PreviewModal the report is generated without in a background thread. Some database drivers are not thread safe and this might cause unexpected behavior or program crashes. Only use PreviewModal in situations where it is sure that a thread safe database driver will be used.我不太明白“database drivers are not thread safe ”是怎么会事。怎样才能保证数据库驱动是线程安全的,我想我的问题可能是由这个原因照成的。