Page 1 of 1

[StiWebViewerFx] Problems with Firefox

Posted: Mon Jul 21, 2014 10:32 am
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 1828 times
In IE:
IE.png
IE.png (30.89 KiB) Viewed 1828 times
In Firefox:
Firefox.png
Firefox.png (21.8 KiB) Viewed 1828 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 1828 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

Re: [StiWebViewerFx] Problems with Firefox

Posted: Tue Jul 22, 2014 6:13 am
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.

Re: [StiWebViewerFx] Problems with Firefox

Posted: Thu Jul 31, 2014 9:25 am
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!

Re: [StiWebViewerFx] Problems with Firefox

Posted: Thu Jul 31, 2014 9:45 am
by Alex K.
Hello,

We are always glad to help you!

Thank you.