IFRAME Size

Stimulsoft Reports.WEB discussion
Post Reply
lloydk
Posts: 15
Joined: Fri Aug 10, 2012 2:41 pm

IFRAME Size

Post 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/
Attachments
Screenshot 2
Screenshot 2
shot2.PNG (65.42 KiB) Viewed 3372 times
Screenshot 1
Screenshot 1
shot1.PNG (71.26 KiB) Viewed 3372 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: IFRAME Size

Post by Vladimir »

Hello,

Please try to upgrade to the latest prerelease build from our website.

Thank you.
lloydk
Posts: 15
Joined: Fri Aug 10, 2012 2:41 pm

Re: IFRAME Size

Post by lloydk »

Hi,

I tried this with the 08.10 build but the same problem persists.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: IFRAME Size

Post by Vladimir »

Hello,

Please check the attached sample project.
Sample.zip
(296.07 KiB) Downloaded 251 times
Thank you.
lloydk
Posts: 15
Joined: Fri Aug 10, 2012 2:41 pm

Re: IFRAME Size

Post 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).
Attachments
shot1.PNG
shot1.PNG (119.55 KiB) Viewed 3348 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: IFRAME Size

Post 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.
lloydk
Posts: 15
Joined: Fri Aug 10, 2012 2:41 pm

Re: IFRAME Size

Post 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.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: IFRAME Size

Post 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.
lloydk
Posts: 15
Joined: Fri Aug 10, 2012 2:41 pm

Re: IFRAME Size

Post 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.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: IFRAME Size

Post by Vladimir »

Hello,

Please check this sample web project:
Sample.zip
(286.22 KiB) Downloaded 405 times
Thank you.
Post Reply