in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

kwanl's blog

March 2007 - Posts

  • Changes to the SSRS web services with Integrated Mode

    When you configure your Report Server to use Integrated Mode there will be some changes in the web services.

    There is a new SOAP endpoint, ReportService2006.asmx, that replaces ReportService2005.asmx. In integrated mode all calls to ReportService2005 will result in an "operation not supported" exception.

    The ReportExecution2005.asmx end point will still work in both integrated and native modes. However, because he reports are stored in SharePoint, the report server paths are no longer used.

    A set of SharePoint proxy end points have also been added for working with a report server in Integrated mode. Using these endpoints, SharePoint will handle the authentication between the SharePoint server and the report server.

    The ReportServiceAuthentication proxy endpoint is used for authentication with a report server when an application is using Forms Authentication.

    Features Supported by Reporting Services in SharePoint Integrated Mode

    Using SOAP API In a SharePoint Application

    *Update*

    So far, I have found that the biggest change in the endpoints is that the ReportPath for web methods that expect one is now a SharePoint path. Other than this I haven't had to make any changes in my web service calls.

  • ASP.Net v1.1 and v2.0 side by side

    You can have ASP.Net web applications running different versions of the .Net framework running in IIS. The restriction is that a single  process can not load both v1.1 and v2.0, that is, within an application pool all the web applications must use the same .Net framework version.

    To change the target ASP.Net version of a web application, right click on the web application's folder in IIS and select properties, ASP.Net tab.

  • Detecting design mode with JavaScript

    There are times when you want your Javascript to have different behaviour depending on which mode the page is in. For example, in design mode, you may want to turn off some functionality  or create a "preview" feature where some visual cues are provided.

    Here's a little Javascript function to detect whether or not the web part page is in design mode. The script checks the value of two hidden fields set by SharePoint.

    function IsInDesignMode()
    {
       if(document.getElementById("MSOLayout_InDesignMode").value == '1') return true;
       if(document.getElementById("MSOTlPn_SelectedWpId").value != "") return true;
       return false;
    }

  • Adjusting IFrame to fit content

    On a recent project, we wanted to display content from another server in an IFrame. However, we wanted the content to seem "seamless" and not have any vertical scrollbars appear. I managed to get some Javascript to get the job done in a simple scenario but fails in the more compliated scenario we were dealing with.

    The problem was that for the script to work, both servers must be in the same domain. The typical way you would do this is to have both web pages set their document.domain property to the same the parent domain. However, as I described in another post, this breaks the SharePoint dropdown menus. Our workaround was to make the height configurable, not an entirely satisfactiory solution but still not a show-stopper.

    I will check if this problem has been corrected in V3.

    Here's a similiar piece of work I found on another blog.
    SharePoint Page Viewer: automatically adjust iFrame height


Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts