.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Sharepoint and SQL SSRS viewer javascript:void window.open Problem

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#

Ok, I've seen a number of threads similar to this, but I think i have my situation narrowed down pretty tight.

I'm using the javascript:void(window.open action to "pop-up" a drill through report on an SSRS report.  the function works just fine when viewing in the SSRS report viewer...however...


- If i display this report with this function in Sharepoint via the Report VIEWER (or page viewer) web part...the functionality of the pop-up no longer works....

and heres the strange part...

If i put a report EXPLORER part in, and have it set to list the report with the function (also passing what report to open) into a report viewer web part...THE FUNCTION NOW WORKS!?

 The SSRS "Jump to URL" action is ="javascript:void(window.open('http://www.google.com'))"

Any thoughts?

It's very strange indeed.  So to summarize,

- Javascript popup worsk in native sql report server interface

- Javascript popup works if the Sharepoint viewer web part GOT its report to view from a report explorer web part

- Javascript popup does NOT repeate NOT work when using a Sharepoint report viewer to directly open the report.

View Complete Post

More Related Resource Links

javascript window.open problem



i have a page(A page) which has a linkbutton on it and i have added the following onattribute method which opens a new popup window(B page)


"onclick", "window.open('" & likeLink & "','newwindow','location=no,toolbar=no,directories=no,menubar=no,width=300,height=400,resizable=yes,scrollbars=yes,top=200,left=250,status=no'); return false;")

now on page B which has poped up there are some links

here is

Problem with Report parameter inside SSRS Report Viewer webpart with deployment from one server to a

Hi all,I've got this problem.me and my team have developed a lot of reports by using a SSRS configured in Sharepoint Integration Mode.For accessing these report we are using the Sql Server 2008 Report Viewer Webpart.One of its parameter is the Report ur that is an absolute url so the problem is when I move our solution from server1 to server2 I have to re-editing all pages where I've added the Report Viewer webpart for updating the report url with the new servername otherwise it's impossible to view the report.Is there any official or unofficial way to solve this problem ?many thanks

Problem configuring SSRS 2008 with sharepoint 2007 on Windows server 2008

Hi All - I am unable to integrate SSRS 2008 with sharepoint 2007. I am new to this part please correct em if am wrong. I have 2 servers one for SQL and one for MOSS MOSS server. Windows server 2008 MOSS 2007 .Net 2008 with basic sql 2005 which comes default WSP builder Everything is working fine SQL server: Windows Server 2008 SQl server 2008 and configured SSRS BIDS. When I am trying to install SSRS plugin for MOSS it is not accepting on both the machines. Please help me if am missing something here. I configured sucessfully on one server but havent done on multi server environment. please help me.   Thanks Saritha    saritha k

Open New Window Using Javascript

Using SSRS 2008. I have a main report where the user clicks on the KPI field and I want to open a new window and go to a detail report and pass parameters from the main report to the detail report. The following javascript will do that but when the KPI has "&" in it I get the following error. In this example the KPI field clicked on had "Headcount Imp & Ops" in it. Keep in mind the KPI field could have the "&" at anytime. Anyway around this? I appreciate any help. Error = The path of the item '/Test/DetailRpt, Imp' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath) Code. = "javascript:void(window.open('http://velma.fmr.com/ReportServer/Pages/ReportViewer.aspx?%2fSPARS%2fDetailRpt&rs:Command=Render&rc:Parameters=true&RptMonth=" & Parameters!RptMonth.value & "&Reports=" & Parameters!Reports.value & "&ID=" & Fields!ID.Value & "&Alias=" & Fields!KPI.Value & "&BD=" & Parameters!BD.Value & "&BD=" & Parameters!ED.Value &" ','_blank','width=875, height=400, top=75, left=35, toolbar=1, menubar=1, location=1, status=1, scrollbars=1, resizable=1'))"

AAM Problem with SSRS 2008 R2 and Sharepoint 2010


I have a single server farm with Sharepoint 2010 and SQL 2008 R2 installed. I have an extranet zone configured - and this is working fine from the internet via a Forefront TMG box.  All features in the farm, including Performance Point pieces (reports/dashboards etc) are working fine via the extranet zone except for Reporting Services reports (these are working fine in the internal/default zone).  I can see the report library, and the individual report items via the extranet, but when I try to view a report, I get this:

" The Web application at https://extranet.company.asia/client/Report Library/Spend by Media Owner.rdl could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application."

My understanding is that multiple zones are now supported in Sharepoint 2010/SSRS 2008 integrations, and that AAM should propagate automatically (?).  Can anyone assist in helping me understand where to look next?

many thanks,


SSRS Report Viewer WebPart dynamic dispaly in SharePoint 2010


dynamic layout or zone  for Report Viewer Webpart, the report as to take all the space possible, and I don't want the scroll bars.

Any Suggestion

Problem with a Javascript Popup Window Minimizing itself


I am new to Javascript.  I have seen other posts about this, but I have not been able to resolve my problem. I have a WebPage that allows a user to click a LinkButton. When the LinkButton is clicked. I execute the following Javascript code after registering the ClientScriptBlock:

<script language='Javascript'>
PopupWindow = window.open('StandardImageLookupPage.aspx','PopupWindow');
PopupWindow.resizeTo(screen.width, screen.height);

No matter what I do the popup window comes up for a brief second and then minimizes itself. I prefer that the window stays maximized.

I am stumped. Any help would be much appreciated.

ps. I am not sure if this makes a difference, but the WebForm that calls this javascript is a user control.

how to open Sharepoint document Library PDF file in New window


Dear All,

I have created Shared document library and uploaded PDF files in it. when I am opening the PDF file its opening in the same browser. I want that PDF file should open in new window.

please suggest me the solution.



Right Click on LinkButton Open in new window Problem



There is a textbox , button  and gridview(contains linkbutton in template field)  in my webpage. If the user enter some text in the textbox and press button means it will search the text in the interrnet and display the text in gridview (like www.google.co.in website).

if the users clicked the linkbutton in the gridview item i want to save the "clicked link" and "searched text" in the database.

If the user clicks the linkbutton in the gridview, i captured the server side event of gridview_rowcommand and wrote the code to save the details in the database. But i cannot get the event of mouse rightclick event of "open in new tab" and "open in new window" option in server side and in javascript.

how can i get the event of mouse rightclick "open in new tab" and "open in new window"?







sharepoint SSRS parameter problem



I had created ssrs report in SSRS 2008 based on sharepoint list in SHarepoint 2007

I had created parameter of EMPGroup from another dataset.

Paarmeter datatype is text.

When I use that parameter to filter the report in tablx properties as

columnname  in parametername  it shows  data on running report


columnname LIKE parametername it shows  error on running report


Thanks & Regards, Vyankatesh Mujumdar

SSRS SharePoint Integrated and publish through TMG Problem




 I am having problems accessing a report after publshing through TMG. I've configured my SharePoint and Reporting Services environment using Kerberos based on the instructions in regards to What every admin needs to know about AAM - http://sharepoint.microsoft.com/blog/Lists/Posts/Post.aspx?List=72c1c85b-1d2d-4a4a-90de-ca74a7808184&ID=804&Web=fb61b44c-8862-4e1d-875b-898c0ed5f1fc. I have 3 servers - one central admin with Web front end, 1 sql ssrs with sharepoint, and one sql db on the back end.


so my AAM setting is as follows based on the AAM article.

default zone: http://sp-internal.dev.com, internet zone: http://sp-external.dev.com (extended zone), internet zone: https://outside.test.com (maps to the extended zone)


I've been able to hit my report and configure reports in Sharepoint using Kerberos. I can access a report using my default zone web application URL but when i access the report through TMG - I get the message "An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode." Also when i look at the TMG logs to access the report, it is looking for the relative url while browsing in sharePoint. But after clicking on the report, the report tries to browse to the external ur

SharePoint 2007 workflow problem Application Event Viewer shows Event 1314

I created a state machine workflow that works well in a test environment with only one user. When attempting to run the workflow in the production environment, the user sees the message operation in progress. The workflow will not continue. The event log on the server shows Event ID 1314, Event Code 4011. It looks like this has something to do with permissions on the server but I'm not sure where to go from here. I've Googled this and not been able to find a resolution. Any help would be appreciated.

SharePoint 2010 and SSRS 2008 R2 Problem


I'm having problems configuring SSRS in integrated mode, whenever I try to do anything with SSRS (including create a data source in a report library) I get a 401 Error. I'll try to describe my setup the best I can.

My farm consists of 3 servers.

SPSQL1 - Contains all the databases needed for SharePoint
SPAPP1 - Central Admin and SSRS (DNS Alias REPORT1)
SPWFE1 - Web Front End

Outside of the environment I have


I have the following SPN's setup:

On spapp_user (Which also is the service account for SSRS)

On cube_user I have

On sql_usre I have

On spwfe1, spapp1, and spapp_user I have setup constrained delegations to

I also have setup the reporting services config file to negotiate instead of use NTLM. And the Applicaon is using classic authentication since we're trying to use Windows Authentication in the reports we want to create when we can actually create them.

So far I have had no luck, however I am able to succe

Silverlight Slideshow Viewer for SharePoint

This series will walk through the Building Blocks that I have created to demonstrate and improve the SharePoint end user experience. I have been using many of these techniques in my developer focused demos for SharePoint 2010 (and in some cases SharePoint 2007). My plan is to use this post series to distribute my code and provide more detail on the why and the how of many of my code samples

Open PopUp Window From Error httpModule


I would like to open a popup window from the assembly to present the information to the user. Does anyone know if this is possible, I am presently doing the following:

        WriteLine("body {font-family:""Verdana"";font-weight:normal;font-size: .7em;color:black; background-color:white;}")
        WriteLine("b {font-family:""Verdana"";font-weight:bold;color:black;margin-top: -5px}")
        WriteLine("H1 { font-family:""Verdana"";font-weight:normal;font-size:18pt;color:red }")
        WriteLine("H2 { font-family:""Verdana"";font-weight:normal;font-size:14pt;color:maroon }")
        WriteLine("pre {font-family:""Lucida Console"";font-size: .9em}")

problem in consuming WCF service through Window application


I have a silverlight application and WCF service all made in VS 2010 , i had hosted my site to web server which contain Window 2008 and IIS 7.0

now the problem is i have another application which is a window application developed in VS2008 , when i try to add the service reference it gives me error


The document at the url was not recognized as a known document type.

The error message from each known type may help you fix the problem:

- Report from 'DISCO Document' is 'There was an error downloading 'http://dev_qa.emspa.com/HRDev3/Service.svc?disco'.'.

  - The request failed with HTTP status 400: Bad Request.

- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from '' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

Metadata contains a reference that cannot be resolved: ''.

Content Type application/soap+xml; charset

SharePoint and Open XML: Generating Documents from SharePoint Using Open XML Content Controls


This article describes how to generate documents that contain data stored in SharePoint lists. The example demonstrates how OpenXML content controls can be defined to capture list data in a Word document and how LINQ to XML can be used to query the lists. The documents are generated from a SharePoint Web Part.

Eric White

MSDN Magazine October 2009

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend