locked
crystal report viewer on client side.... not showing anything RRS feed

  • Question

  • User383567333 posted

    I an using crystal report 10 with VS05 , reports is showing and running fine on deployed server,

    but when i am using it as client and want to access using any other public system, it shows nothing and i found nothing for this problem..

    plz help me, how can i resolve this....

    Tuesday, July 17, 2012 5:41 AM

All replies

  • User383567333 posted

    here is client side html


    <script type="text/javascript">
      TreeParams = {

           // You will probably have to change these.

      /** TreeParams:
       *  OPEN_MULTIPLE_MENUS     --  boolean
       *                         if true, more than one menu can
       *                         be open at a time. Otherwise,
       *                         opening a new menu closes any
       *                         open menu.
       *
       *  OPEN_MULTIPLE_SUBMENUS  --  boolean
       *                         Same as OPEN_MULTIPLE_MENUS but
       *                         applies to the submenus of each menu.
       *
       *  OPEN_WHILE_CLOSING      --  boolean
       *                         If either OPEN_MULTIPLE_MENUS or
       *                         OPEN_MULTIPLE_SUBMENUS are true,
       *                         OPEN_WHILE_CLOSING will simultaneously
       *                         open a new menu while closing the
       *                         currently open menu.
       *
       *  TIME_DELAY              --  int
       *                         How slowly a menuNode collapses
       *                         in milliseconds. (0 to 100).
       */

          OPEN_MULTIPLE_MENUS    : false,

          OPEN_WHILE_CLOSING     : true,
          TIME_DELAY             : 100,

          OPEN_MENU_ICON         : "skins/LPanel/3Cheers/images/arrow1.gif",
          CLOSED_MENU_ICON       : "skins/LPanel/3Cheers/images/arrow2.gif"

      };

    </script>

    <script src="Skins/LPanel/jsscripts/utils.js" type="text/javascript"></script>

    <script src="Skins/LPanel/jsscripts/AnimTree.js" type="text/javascript"></script>

    <script language="javascript">
        function funcChangePlan()
        {
        document.plans.action = "menu.asp?action=4"
        document.plans.submit();
        }
        function hidestatus(){
        window.status=''
        return true
        }
        if (document.layers)document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
        document.onmouseover=hidestatus
        document.onmouseout=hidestatus
    </script>

    <link rel="stylesheet" type="text/css" href="skins/LPanel/3Cheers/hcMenuStyles.css">
    <style type="text/css"></style>

    <HTML>
    <HEAD>
    <TITLE>Crystal Reports ActiveX Viewer</TITLE>
    </HEAD>
    <BODY BGCOLOR=C6C6C6 ONUNLOAD="CallDestroy();" leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0>
    <OBJECT ID="CRViewer"
        CLASSID="CLSID:A1B8A30B-8AAA-4a3e-8869-1DA509E8A011"
        WIDTH=100% HEIGHT=99%
         codebase="../crystalreportviewers10/ActiveXControls/ActiveXViewer.cab#Version=10,0,0,280" VIEWASTEXT>
    <PARAM NAME="EnableRefreshButton" VALUE=1>
    <PARAM NAME="EnableGroupTree" VALUE=1>
    <PARAM NAME="DisplayGroupTree" VALUE=1>
    <PARAM NAME="EnablePrintButton" VALUE=1>
    <PARAM NAME="EnableExportButton" VALUE=1>
    <PARAM NAME="EnableDrillDown" VALUE=1>
    <PARAM NAME="EnableSearchControl" VALUE=1>
    <PARAM NAME="EnableAnimationControl" VALUE=1>
    <PARAM NAME="EnableZoomControl" VALUE=1>
    </OBJECT>

    <SCRIPT LANGUAGE="VBScript">
    <!--
    Sub Window_Onload
        On Error Resume Next
        Dim webBroker
        Set webBroker = CreateObject("CrystalReports10.WebReportBroker.1")
        if ScriptEngineMajorVersion < 2 then
            window.alert "IE 3.02 users on NT4 need to get the latest version of VBScript or install IE 4.01 SP1. IE 3.02 users on Win95 need DCOM95 and latest version of VBScript, or install IE 4.01 SP1. These files are available at Microsoft's web site."
        else
            Dim webSource
            Set webSource = CreateObject("CrystalReports10.WebReportSource.1")
            webSource.ReportSource = webBroker
            webSource.URL = "RDCrptserver10.asp"
            webSource.PromptOnRefresh = True
            CRViewer.ReportSource = webSource
        end if
        CRViewer.ViewReport
    End Sub
    -->
    </SCRIPT>

    <script language="javascript">
    function CallDestroy()
    {
        window.open("Cleanup.asp");
    }
    </script>

    </BODY>
    </HTML>

    Tuesday, July 17, 2012 5:44 AM
  • User241982720 posted

    please make sure that the other public system has CR installed as well.
    And basically CR will be installed in C:\inetpub\wwwroot\aspnet_client, so you need to copy the "aspnet_client" folder from that path to your application folder.

    Wednesday, July 18, 2012 12:08 AM
  • User1057349292 posted

    Sort of, but see http://forums.asp.net/t/1825668.aspx/1?Resolved+problem+showing+Crystal+Report+12+reports+for+VS+2010+and+IE9+Firefox+Chrome

    Must consider .NET framework # in  location of the C:\inetpub\wwwroot\aspnet_client stuff also.

    Thursday, July 19, 2012 8:22 AM