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] <burke.david@gmail.com> wrote in message
news:1105073485.600549.129010@z14g2000cwz.googlegroups.com...
>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.
>