addOpentypeFontFile method issue on simulsoft report on Ios

Stimulsoft Reports.JS discussion
Post Reply
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

addOpentypeFontFile method issue on simulsoft report on Ios

Post by Ehsan »

Hello

when I add a font to stimulsoft js report by below code

Code: Select all

Stimulsoft.Base.StiFontCollection.addOpentypeFontFile("ModifiedDroidNaskh.ttf");
and when i open report in safari,
safari generate below error:
xmlhttprequest response type cannot be changed for synchronous http(s) requests made from the window context

you can see sample project in attached file,
thank you
Attachments
addOpentypeFontFile method issue on simulsoft report on Ios.rar
(3.15 MiB) Downloaded 207 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: addOpentypeFontFile method issue on simulsoft report on

Post by Alex K. »

Hello,

Could you explain your issue in more details? Which MacOS version are you use?

Thank you.
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Re: addOpentypeFontFile method issue on simulsoft report on

Post by Ehsan »

Hello,

Please lunch attached stimulsoft report project in iphone or mac book
in every apple device ,
xmlhttprequest response type cannot be changed for synchronous http(s) requests made from the window context
this error will be log in console.
thank you
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Re: addOpentypeFontFile method issue on simulsoft report on

Post by Ehsan »

Hello,

I use a mac book with below details:
  • macOs Sierra
    Version 10.12.4
    MacBook Pro (13-inch, Mid 2012)
    Processor 2.5 GHz Intel Core i5
    Memory 8 GB 1600 MHz DDR3
    Graphics Inttel HD Graphics 4000 153 MB
Please Help me to solve this issue
Thanks
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: addOpentypeFontFile method issue on simulsoft report on

Post by HighAley »

Hello.

We are still working on your issue.
We will keep in touch with any news.

Thank you.

Ticket number: #4459
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: addOpentypeFontFile method issue on simulsoft report on

Post by HighAley »

Hello.

We have added a special method to add Font files in MacOS.
Please, try to use it. It will be available in our next build.

Code: Select all

static addOpentypeFontFileAsync(callback: Function, filePath: string, fontName: string = null)
Thank you.
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Re: addOpentypeFontFile method issue on simulsoft report on

Post by Ehsan »

Hello,

There is a javascript error when use this:

code:

Code: Select all

static addOpentypeFontFileAsync(callback: Function, filePath: string, fontName: string = null)
as below:

Code: Select all

Stimulsoft.Base.StiFontCollection.addOpentypeFontFileAsync(function () { }, "glyphicons-halflings-regular.ttf");
Javascript error :
stimulsoft.reports.js:38 Uncaught RangeError: Offset is outside the bounds of the DataView
at DataView.getInt8 (<anonymous>)
at Object.exports.getTag (stimulsoft.reports.js:38)
at Object.parseBuffer [as parse] (stimulsoft.reports.js:36)
at stimulsoft.reports.js:134
at XMLHttpRequest.a.onreadystatechange (stimulsoft.reports.js:131)


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

Re: addOpentypeFontFile method issue on simulsoft report on

Post by Alex K. »

Hello,

Please send us a request on support@stimulsoft.com with detail description.

Thank you.
Post Reply