Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
How call the Reporting Service url in PHP page directly
posted

What is the way to call service url directly in PHP page for generating the Reporting?

Example:-

Whether below code is achievable or not?

In My PHP Page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        
        <script src="modernizr.min.js" type="text/javascript"></script>  
        <link href="jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css"/>       
        <script src="jquery-1.6.4.min.js" type="text/javascript"></script>  
        <script src="jquery-ui.min.js" type="text/javascript"></script>   
        <script src="infragistics.loader.js" type="text/javascript"></script>
    </head>

    <body>
        <!-- Report Viewer Loader -->
        <script type="text/javascript">
            var serviceEndpoint= "http://myserver.com/myservice.svc/getUserdetails/";

            $.ig.loader({
                cssPath: 'http://es.infragistics.com/samplesbrowser/i/Reporting/ReportViewer/Styles',
                scriptPath: 'http://es.infragistics.com/samplesbrowser/i/Reporting/ReportViewer/Scripts',
                resources: 'igReportViewer',
                ready: function () {
                    $(function () {
                        $("#viewer").igReportViewer({
                            renderSettings: {
                                definitionUri: "Infragistics.Web.ReportLibrary;component/ReportDesigns/UsersList.igr",
                                serviceEndpointUri: serviceEndpoint
                            },
                            width: 720,
                            height: 520,
                            pageFit: 'fitToWidth'
                        });
                    });
                }
            });
        </script>
    
        <div id="viewer" ></div>
    </body>
</html>
Parents
  • 24671
    Suggested Answer
    posted

    Hi,

    Yes that code should be fine in a PHP app. Note that this is just javascript and HTML, so it is not dependent on any web framework/technology. You can even put it in a simple HTML page. Please note that the php page needs to be in the same domain as the SVC (The service behind the service endpoint).

    Hope it helps. Thanks,

    Angel

Reply Children