Shape/Image provokes "Cannot read property 'replace' of undefined"

Stimulsoft Reports.JS discussion
Post Reply
miroslav.petrov
Posts: 2
Joined: Mon Apr 19, 2021 1:39 pm

Shape/Image provokes "Cannot read property 'replace' of undefined"

Post by miroslav.petrov »

Hello,

I have created a simple report with a header and a shape on the header.

When going on "Preview", the report keeps processing and in the browser console I have the following message :

"Cannot read property 'replace' of undefined"

It is 2021.2.2 JS version.

Same thing happens when I place an image in the header.

The report works when the shape/image is outside any header/band.

Is there any property I have to change to avoid this error?

Thanks
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Shape/Image provokes "Cannot read property 'replace' of undefined"

Post by Lech Kulikowski »

Hello,

Please check the last release build 2021.2.3
If the issue still present, please send us a sample that reproduces the issue for analysis.

Thank you.
miroslav.petrov
Posts: 2
Joined: Mon Apr 19, 2021 1:39 pm

Re: Shape/Image provokes "Cannot read property 'replace' of undefined"

Post by miroslav.petrov »

Hi,

Thanks for your answer.

Please find a sample .mrt
shape.mrt
(6.25 KiB) Downloaded 98 times

When we run the report in Firefox, there is sitll the same issue, but there is another message in the console :

n.text is undefined stimulsoft.reports.js:52:66617

In Chrome the console displays :

Cannot read property 'replace' of undefined stimulsoft.reports.js:52

when checking into the stumulsoft.reports.js:52:66617 file, there is an error message instruction in the console instead of displaying it in the screen :
class r {
static showError(t, n = !0) {
let a = t;
null != t && null != t["message"] && (a = t.message), n && (!r.errorMessageForm || this.lastErrorMessage == a && 0 != r.errorMessageForm.visible || (r.errorMessageForm.show(a, !1), this.lastErrorMessage = a)), e.System.NodeJs.consoleLog && console.log(a)
}
}

Could you please advise?

Is there a text property to the graphic elements (shapes/images) which has to be specified?
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Shape/Image provokes "Cannot read property 'replace' of undefined"

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.

Thank you.
Attachments
Screenshot 2021-04-20 234549.png
Screenshot 2021-04-20 234549.png (146.25 KiB) Viewed 9934 times
Post Reply