Groups | Blog | Home
all groups > sql server reporting services > november 2004 >

sql server reporting services : How do I use an IFRAME to show a report?


Jim
11/16/2004 4:16:20 PM
Hi,

I've got a report that I wish to display within an IFRAME on an existing
site. It looks great, and fits nicely. The problem is, when I drill
through one of my charts, the target for the image map is "_top", i.e. the
report I've drilled through to is no longer in the IFRAME, but rather it is
the main page in the browser. I'm need to remain within the IFRAME. I've
looked all over for a way to specify that the Action for the data item on
the chart have a target of "_self", but to no avail.

Does anybody have an idea of how to do this?

Thanks, Jim

Jeff A. Stucker
11/16/2004 5:51:19 PM
Add a parameter to the URL:

rs:LinkTarget=iframename

This works, except that when using Jump to Report links, subsequent clicks
break out of the IFRAME.

--
'(' Jeff A. Stucker
\

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

Jim
11/17/2004 7:36:36 AM
Hi Jeff,

Thank you, that does work for me. I noticed your second post, though, and
the issue is a problem for me as well: I have multiple levels of
drill-throughs as well. You talk about "dynamically creating the URL". Do
you mean changing the Action on your drillthrough item to "Jump to URL" and
crafting something there? If so, you're right, that does make things less
portable. I'm going to try this, but would appreciate verification that
this is what you mean.

Thanks, Jim

[quoted text, click to view]

Jeff A. Stucker
11/17/2004 8:50:26 AM
Right now I'm trying another tack that I've seen discussed in these groups:
using rc:ReplacementRoot

This will mean restructuring the report viewer user control (based on
Microsoft samples) and the page that uses it. I'll post back when I make
some progress.

Cheers,

'(' Jeff A. Stucker
\

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

Jeff A. Stucker
12/6/2004 9:23:35 PM
I promised to post back on this.... I modified the ReportViewer control
(Microsoft Samples) to generate a rc:ReplacementRoot parameter. It works
great! Here's some of the code:

[Category("General Report Parameters"),

Description("URL to replace in links such as
http://servername/CustomRendering/view.aspx?report=")]

public String ReplacementRoot

{

get

{

return this._replacementRoot;

}

set

{

this._replacementRoot = value;

this.SetParameter("rc:ReplacementRoot", value);

}

}


--
Cheers,

'(' Jeff A. Stucker
\

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

AddThis Social Bookmark Button