all groups > sql server reporting services > january 2005 >
You're in the

sql server reporting services

group:

IFrame URL expression



IFrame URL expression burke.david NO[at]SPAM gmail.com
1/6/2005 8:51:25 PM
sql server reporting services: I have an .aspx page where the user selects filter criteria on the
left, and ideally, when the user clicks the LoadReport button the
report will load in an IFRAME within the same page.

I was generating a URL then generating Javascript and opening a new
window for the report. We would rather have the report on the same
page, hence the IFRAME.

I am having a hard time figuring this out. Any ideas?

Here is my previous code where a new window is opened:
StringBuilder jsBuilder = new StringBuilder();

jsBuilder.Append("<script language='javascript'>");
jsBuilder.Append("var win= null;");
jsBuilder.Append("var w = (screen.width-12);");
jsBuilder.Append("var h = (screen.height-55);");
jsBuilder.Append("var settings ='height='+h+',';");
jsBuilder.Append("settings +='width='+w+',';");
jsBuilder.Append("settings +='top='+0+',';");
jsBuilder.Append("settings +='left='+0+',';");
jsBuilder.Append("settings +='scrollbars='+scroll+',';");
jsBuilder.Append("settings +='resizable=yes';");

jsBuilder.Append("win=window.open('"+urlBuilder.ToString()+"','Report',settings);");
jsBuilder.Append("if(parseInt(navigator.appVersion) >=
4){win.window.focus();}");
jsBuilder.Append("</script> }");

Response.Write(jsBuilder.ToString());
Any Help would be greatly appreciated. Thanks.
Re: IFrame URL expression Jeff A. Stucker
1/6/2005 10:27:56 PM
You can use the ReportViewer sample code that comes with Reporting Services
as a starting point. Look through old messages in this newsgroup to see
some of the customizations we've done with that.

--
Cheers,

'(' Jeff A. Stucker
\

Business Intelligence
www.criadvantage.com
--------------------------------------
[quoted text, click to view]

AddThis Social Bookmark Button