2011.3 Flash Viewer does not size to full page anymore

Stimulsoft Reports.WEB discussion
Post Reply
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

2011.3 Flash Viewer does not size to full page anymore

Post by jay@bplogix.com »

In the previous versions, StiWebViewerFx was able to automatically size itself to the browser page size. Now on the new version, it does not seem to have this ability. Here is the web content I previously used to auto-size the flash viewer:


Untitled Page

html, body, form { height: 100%; margin: 0px; }











Is there now a different way of accomplishing this?
Thanks
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

2011.3 Flash Viewer does not size to full page anymore

Post by Vladimir »

Hello,

In the new release for WebViewerFx component the default size have been determined. To set the 100% width and height, please use the following code:




Also, you can use the following code to show the viewer:

StiWebViewerFx1.Show(report);

In this case, all the page sizes will be ignored.

Thank you.
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

2011.3 Flash Viewer does not size to full page anymore

Post by jay@bplogix.com »

That does size the flash to the entire size of the window ... but what if I have HTML content "above" the flash report (in my examples I have simple HTML that shows status of external stuff above the flash report. For instance, previously your support helped me to set up this page like this:


Untitled Page

html, body, form { height: 100%; margin: 0px; }




This is just some header information
This is some more header information







In that example the flash viewer correctly sized to use all available space below the HTML content, and it did not add scroll bars. The new version sizes the flash window to the entire size of the window, so that the bottom part of the flash report is not visible, and scroll bars are needed to scroll down a couple inches. How can this be done in the new version?
Thanks!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

2011.3 Flash Viewer does not size to full page anymore

Post by Vladimir »

Hello,

We tested the old version 2011.2, a component works the same way as for the values Width="100%" Height="100%" in the new version.

Thank you.

Attachments
1474.img.png
1474.img.png (80.56 KiB) Viewed 2140 times
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

2011.3 Flash Viewer does not size to full page anymore

Post by jay@bplogix.com »

Yes, but in the previous version I did not specify the height and width on the report control ... It used the height of the container DIV (this was based on samples support gave me). In my sample in previous post notice the attributes in the DIV and the page styles. How can I accomplish the same result in the new version?

Thanks
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

2011.3 Flash Viewer does not size to full page anymore

Post by Vladimir »

Hello,

Please try this code:



Thank you.
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

2011.3 Flash Viewer does not size to full page anymore

Post by jay@bplogix.com »

Thanks that works! Actually the width needed to set to 100%:

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

2011.3 Flash Viewer does not size to full page anymore

Post by Vladimir »

You're welcome!
Post Reply