Page 1 of 1
IFRAME Size
Posted: Wed Aug 15, 2012 1:38 pm
by lloydk
I've set ScrollbarsMode=true on the StiWebViewer control and now my report is rendered in an IFRAME with a border and who's height stops half way down the page. Is there any way of fixing this?
I also tried looking at the supplied Web Demo and the issue also applies here. You can see the issue in the attached screenshots.
Resizing the browser window also does not resize the frame or variable input container.
We've not applied any styles to cause this.
Your online demo appears to be unaffected -
http://web.stimulsoft.com/
Re: IFRAME Size
Posted: Thu Aug 16, 2012 7:23 am
by Vladimir
Hello,
Please try to upgrade to the latest prerelease build from our website.
Thank you.
Re: IFRAME Size
Posted: Thu Aug 16, 2012 9:20 am
by lloydk
Hi,
I tried this with the 08.10 build but the same problem persists.
Re: IFRAME Size
Posted: Fri Aug 17, 2012 11:34 am
by Vladimir
Hello,
Please check the attached sample project.
Thank you.
Re: IFRAME Size
Posted: Mon Aug 20, 2012 9:08 am
by lloydk
That's a little better in that the viewing area is larger, however it still doesn't resize with the browser and expands outside of the browser area (see attachment).
Re: IFRAME Size
Posted: Tue Aug 21, 2012 12:30 pm
by Vladimir
Hello,
If you delete the unnecessary elements from the page (the button), then a viewer will stretch to 100% height of the window. Viewer is always stretched to the height of the parent element.
Thank you.
Re: IFRAME Size
Posted: Wed Aug 22, 2012 2:57 pm
by lloydk
This is what the HTML looks like:
Code: Select all
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="stim_report.aspx.cs" Inherits="StudyGroup.ARP.Website.StimulsoftReportPage" %>
<%@ Register assembly="Stimulsoft.Report.Web, Version=2012.1.1300.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a" namespace="Stimulsoft.Report.Web" tagprefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
html, body, form {
height: 100%;
}
</style>
</head>
<body>
<form id="mainform" runat="server">
<input id="panel" clientidmode="Static" type="hidden" value="" runat="server" />
<input id="reportType" clientidmode="Static" type="hidden" value="stim" runat="server" />
<input id="reportParams" clientidmode="Static" type="hidden" value="" runat="server" />
<div>
<cc1:StiWebViewer ID="webViewer" runat="server" Width="100%" Height="100%" RenderMode="AjaxWithCache"
ShowBookmarksButton="False" ShowParametersButton="False" EnableTheming="True"
ServerTimeOut="00:15:00" ShowPageShadow="False"
ZoomPercent="75" AllowBookmarks="False" AllowPrintBookmarks="False"
ViewStateMode="Enabled" ScrollBarsMode="True" />
</div>
</form>
<%= WebExtensions.CombresLink("reportCss") %>
<%= WebExtensions.CombresLink("reportJs") %>
</body>
</html>
And it still does it.
Note: This is using the latest stable release, although it also does it with the latest preview release as well.
Re: IFRAME Size
Posted: Thu Aug 23, 2012 8:13 am
by Vladimir
Hello,
Please specify do you want to display the viewer on the full screen without scroll bars or the with the scroll bars mode? (the ScrollBarsMode property)
Thank you.
Re: IFRAME Size
Posted: Thu Aug 23, 2012 8:48 am
by lloydk
With scrollbars, otherwise if the report is zoomed to 100% it goes outside of the viewing area. We usually get a vertical scrollbar but there's no way to scroll horizontal.
Re: IFRAME Size
Posted: Fri Aug 24, 2012 11:46 am
by Vladimir
Hello,
Please check this sample web project:
Thank you.