Empty page and console errors on Safari

Stimulsoft Reports.JS discussion
Post Reply
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Empty page and console errors on Safari

Post by hugo »

Hi,

I'm using latest version of Stimulsoft Reports.JS.
It is working on Google Chrome (macOS) but all my reports gets an empty page and erros in console on Safaria (macOS).

The crash is in: stimulsoft.reports.js
The line of code is: wt.b.StimulsoftDateTimeRange = Fx;
The error is: undefined is not an object (evaluating 'i.ref')

Note: I noticed the "Fx" and my reports haver origin on Flex version (I'm rewriting a Flex application in JS).
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Empty page and console errors on Safari

Post by Max Shamanov »

Hello,

Please send us a sample project that reproduces the issue.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Empty page and console errors on Safari

Post by hugo »

Hi,

I was able to isolate the issue with a very simple report with a text box with a message: HELLO WORLD
The issue happens with a simple footer.

Here the report (the report was created with the old Flex version, can run with modern JS - Google Chrome but not with Safari).
If I remove the footer, it can run with Safari.

The report xml mrt source:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.02" application="StiReport" type="Flex">
<Dictionary isKey="true" type="Dictionary" Ref="1">
<Databases isList="true" count="0"/>
<DataSources isList="true" count="0"/>
<Relations isList="true" count="0"/>
<Report isRef="0"/>
<Variables isList="true" count="10">
<value>,CompanyLogo,CompanyLogo,System.String,,False,False</value>
<value>,CompanySignature,CompanySignature,System.String,,False,False</value>
<value>,CompanyAddress,CompanyAddress,System.String,,False,False</value>
<value>,CompanyZipCode,CompanyZipCode,System.String,,False,False</value>
<value>,CompanyPhone,CompanyPhone,System.String,,False,False</value>
<value>,CompanyFAX,CompanyFAX,System.String,,False,False</value>
<value>,CompanyEMail,CompanyEMail,System.String,,False,False</value>
<value>,CompanyWebSite,CompanyWebSite,System.String,,False,False</value>
<value>,ReportMonth,ReportMonth,System.String,,False,False</value>
<value>,ReportYear,ReportYear,System.Int32,,False,False</value>
</Variables>
</Dictionary>
<EngineVersion>EngineV2</EngineVersion>
<GlobalizationStrings isList="true" count="0"/>
<MetaTags isList="true" count="0"/>
<Pages isList="true" count="1">
<Page1 isKey="true" type="Page" Ref="2">
<Border>None;Black;2;Solid;False;4;Black</Border>
<Brush>Transparent</Brush>
<Components isList="true" count="2">
<PageFooterBand1 isKey="true" type="PageFooterBand" Ref="3">
<Brush>Transparent</Brush>
<ClientRectangle>0,19.4,28.7,0.6</ClientRectangle>
<Components isList="true" count="2">
<Text1 isKey="true" type="Text" Ref="4">
<Brush>Transparent</Brush>
<ClientRectangle>25.6,0.1,3,0.5</ClientRectangle>
<Conditions isList="true" count="0"/>
<Font>Arial,8,Italic</Font>
<Guid>f249d08543480e2837d4a482e4f8ef23</Guid>
<HorAlignment>Right</HorAlignment>
<Margins>0,0,0,0</Margins>
<Name>Text1</Name>
<Page isRef="2"/>
<Parent isRef="3"/>
<ProcessingDuplicates>Hide</ProcessingDuplicates>
<Text>Página {PageNumber} de {TotalPageCount}</Text>
<TextBrush>Black</TextBrush>
<Type>Expression</Type>
<VertAlignment>Center</VertAlignment>
</Text1>
<HorizontalLinePrimitive2 isKey="true" type="HorizontalLinePrimitive" Ref="5">
<ClientRectangle>0,0,28.6,0.0254</ClientRectangle>
<Color>Blue</Color>
<Conditions isList="true" count="0"/>
<EndCap isKey="true" type="Cap" Ref="6">
<Color>Black</Color>
</EndCap>
<Guid>f9f5f334385a7f91dcb4b2a42737fe63</Guid>
<Name>HorizontalLinePrimitive2</Name>
<Page isRef="2"/>
<Parent isRef="3"/>
<Size>3</Size>
<StartCap isKey="true" type="Cap" Ref="7">
<Color>Black</Color>
</StartCap>
</HorizontalLinePrimitive2>
</Components>
<Conditions isList="true" count="0"/>
<Name>PageFooterBand1</Name>
<Page isRef="2"/>
<Parent isRef="2"/>
</PageFooterBand1>
<Text24 isKey="true" type="Text" Ref="8">
<Brush>Transparent</Brush>
<ClientRectangle>10.4,5,6.2,2</ClientRectangle>
<Conditions isList="true" count="0"/>
<Font>Arial,10</Font>
<Margins>0,0,0,0</Margins>
<Name>Text24</Name>
<Page isRef="2"/>
<Parent isRef="2"/>
<Text>HELLO WORLD</Text>
<TextBrush>Black</TextBrush>
<Type>Expression</Type>
</Text24>
</Components>
<Conditions isList="true" count="0"/>
<Guid>abbcf258df40d7adb7df4505e8b79cc2</Guid>
<Margins>0.5,0.5,0.5,0.5</Margins>
<Name>Page1</Name>
<Orientation>Landscape</Orientation>
<PageHeight>21</PageHeight>
<PageWidth>29.7</PageWidth>
<PaperSize>A4</PaperSize>
<Report isRef="0"/>
<Watermark isKey="true" type="Stimulsoft.Report.Components.StiWatermark" Ref="9">
<Font>Arial,100</Font>
<TextBrush>[50:0:0:0]</TextBrush>
</Watermark>
</Page1>
</Pages>
<PrinterSettings isKey="true" type="Stimulsoft.Report.Print.StiPrinterSettings" Ref="10"/>
<ReportAlias>Report</ReportAlias>
<ReportChanged>08/31/2022 06:50:48 PM</ReportChanged>
<ReportCreated>12/30/2013 07:40:51 PM</ReportCreated>
<ReportFile>/Volumes/Data/Template.mrt</ReportFile>
<ReportGuid>2c61e7babfe2dfe44e9cf506ed1dfc0f</ReportGuid>
<ReportName>Report</ReportName>
<ReportUnit>Centimeters</ReportUnit>
<ReportVersion>2018.2.1</ReportVersion>
<ScriptLanguage>CSharp</ScriptLanguage>
<Styles isList="true" count="0"/>
</StiSerializer>
Kirill Klimenkov

Re: Empty page and console errors on Safari

Post by Kirill Klimenkov »

Hello.

We couldn't reproduce the issue.
Please send us the sample project that let us reproduces the issue.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Empty page and console errors on Safari

Post by hugo »

With the latest Stimulsoft JS the error does not happen anymore.
Thank you.
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Empty page and console errors on Safari

Post by Max Shamanov »

Hello,

You are welcome!
Post Reply