用intraweb开发rave报表,在客户端打印或预览总是在服务器端运行(*.rav 文件在服务器端),而不是在客户端运行打印和预览(并且不是本地打印机),诸多此类问题,怎么才能解决呀?请教!
如有资料:
 Email: [email protected]

解决方案 »

  1.   

    http://expert.csdn.net/Expert/topic/1315/1315471.xml?temp=7.004946E-02
      

  2.   

    把生成的报表保存成一个HTML或PDF格式,
    再打开就可以了,如果你直接的打开只能是在服务器端的,
    如下是我以前写的
    RaveProject1.SelectReport('report1',true);
    with RvSystem1 do
    begin
       DoNativeOutput :=false;
       DefaultDest :=rdfile;
       RenderObject :=rvrenderhtml;//保存为HTML
       OutputFileName :='files/test.html';//要保存在INTRAWEB下FIELS中
       SystemSetups :=SystemSetups-
    end;
    try
         raveproject1.Execute;
    except
       webapplication.showmessage('生成报表错误');
    end;//打开此报表
    const
    AIPOptions: string ='toolbar=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,location=no,directories=no,width=780,height=580';
    AIPNewWindow: string = 'NewWindow("%s", "%s", "%s");';
    aipurl :=webapplication.urlbase+'/files/'+'test.html';
    AddToInitProc('NewWindow("' + AIPURL + '", "Agenda", "' + AIPOptions+'");');
      

  3.   

    SystemSetups :=SystemSetups-改为
    SystemSetups :=SystemSetups-[ssallowsetup]