[StiWebViewerFx] Problems with Firefox

Stimulsoft Ultimate discussion
Post Reply
Anhph68
Posts: 6
Joined: Thu Apr 11, 2013 12:38 pm

[StiWebViewerFx] Problems with Firefox

Post by Anhph68 »

I have an problem with Firefox, help me, please!!!

When I use Firefox to view StiReport, StiWebViewerFx shows nothing, no loading, no connecting,... doesn't have anything. However, it've done very well with Chrome. In the IE, the height of the report was collapsed (picture).

Does anyone has the same problem like this?

In Chrome: (OK, very pretty!!!)
Chrome.png
Chrome.png (38.36 KiB) Viewed 1570 times
In IE:
IE.png
IE.png (30.89 KiB) Viewed 1570 times
In Firefox:
Firefox.png
Firefox.png (21.8 KiB) Viewed 1570 times
I use Windows 8.1, Visual Studio 2013 update 2, MS Sql Server 2012 sp1 and Stimulsoft 2013.1.1505.
I run project via VS2013 and when I tested with IIS on Windows 8.1, there was the same problem.
Untitled.png
Untitled.png (27.21 KiB) Viewed 1570 times
My code in .aspx file
<form id="form1" runat="server">
<div>
<cc1:StiWebViewerFx ID="StiWebViewerFx1" runat="server" ShowExportToBmp="False" ShowExportToCsv="False" ShowParametersButton="False" ShowBookmarksButton="False" ShowExportToDbf="False" ShowExportToDif="False" ShowExportToDocument="False" ShowExportToExcelXml="False" ShowExportToGif="False" ShowExportToHtml="False" ShowExportToJpeg="False" ShowExportToMetafile="False" ShowExportToMht="False" ShowExportToOds="False" ShowExportToOdt="False" ShowExportToPcx="False" ShowExportToPng="False" ShowExportToSvg="False" ShowExportToSvgz="False" ShowExportToSylk="False" ShowExportToText="False" ShowExportToTiff="False" ShowExportToXml="False" ToolbarAlignment="Center" ShowPrintButton="True" ZoomPercent="75" ViewMode="WholeReport" Width="100%" Height="100%"/>
</div>
</form>

In code behind:

StiReport report = new StiReport();
report.Load(Server.MapPath("Report.mrt"));
report.RegData(dt);
report.Compile();
report.Dictionary.Synchronize();
StiWebViewerFx1.Report = report;

Help me, please.

Thank!

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

Re: [StiWebViewerFx] Problems with Firefox

Post by Vladimir »

Hello,

Please specify the height of the viewer in pixels, for example Height="600px".

If you want to set the height to 100%, it is necessary to set the height to 100% for all the containers where the viewer is placed: DIV, FORM, BODY, HTML.

Thank you.
Anhph68
Posts: 6
Joined: Thu Apr 11, 2013 12:38 pm

Re: [StiWebViewerFx] Problems with Firefox

Post by Anhph68 »

Vladimir wrote:Hello,

Please specify the height of the viewer in pixels, for example Height="600px".

If you want to set the height to 100%, it is necessary to set the height to 100% for all the containers where the viewer is placed: DIV, FORM, BODY, HTML.

Thank you.
Hi,

I changed the following code:
StiWebViewerFx1.Report = report;

to

StiWebViewerFx1.view(report);

This resolved my all above problems. Don't need to specify width and height of the viewer any more.

Thank you so much!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: [StiWebViewerFx] Problems with Firefox

Post by Alex K. »

Hello,

We are always glad to help you!

Thank you.
Post Reply