set "Text Format" invalid

Stimulsoft Reports.JS discussion
pall
Posts: 17
Joined: Mon Nov 02, 2015 1:15 pm

set "Text Format" invalid

Post by pall »

1.try set "Text Format" = Date , how can i set date format "yyyy-mm-dd".
advise:add a new property,"custom format"

2. how to use report.setVariable???
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: set "Text Format" invalid

Post by HighAley »

Hello.

1. Sorry, but TextFormat does not work now. We are still working on this feature.

2. Here is a sample how to use setVariable

Code: Select all

report.setVariable("variableName", value);
Thank you.
pall
Posts: 17
Joined: Mon Nov 02, 2015 1:15 pm

Re: set "Text Format" invalid

Post by pall »

Text Format use express "{Format("0:yyyy-mm-dd",today)} write code in each textbox
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: set "Text Format" invalid

Post by HighAley »

Hello, Pall.

Sorry, maybe we don't understand your question.
Could you describe it more detailed?

Thank you.
pall
Posts: 17
Joined: Mon Nov 02, 2015 1:15 pm

Re: set "Text Format" invalid

Post by pall »

no question now,thank "HigAley",I just test format display text,like date format yyyy-MM-dd,number format:0.00
on the designer,selected textbox,and select "data" from toolbar,it is same select "date" or not
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: set "Text Format" invalid

Post by HighAley »

Hello, Pall.

No, this is not the same.
We are working on TextFormat property now.
The Format() function come from .Net Framework. There will be no such function if Reports.JS. At least in the near future.

You should check all your report templates in Designer after import and do necessary changes there(add images and etc.).

Thank you.
pall
Posts: 17
Joined: Mon Nov 02, 2015 1:15 pm

Re: set "Text Format" invalid

Post by pall »

make an improvement of TextFormat property in new version 2015.2.9?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: set "Text Format" invalid

Post by HighAley »

Hello.

Sorry, text format was not added to this build.
We are working on it now and do the best to add it in our next build.

Thank you.
masoud.bahrami
Posts: 1
Joined: Tue Nov 24, 2015 8:27 am

Re: set "Text Format" invalid

Post by masoud.bahrami »

I have an report using Stimulsoft js report, that It's data source is Json data, one of properties in this Json object, sometimes taged with html tagsm but when rendering this Json object, I occurred this Exception:

Connection 'Mail': After parsing a value an unexpected character was encountered: w. Path '[0].TextBody', line 29, position 86.


and my Json data path has this format

Code: Select all

[
        {
            "Subject": "Úáí",
            "SenderName": "ÏÑíÇÝÊ ˜ääÏÇä",
            "ReceiversName": "ÏÑíÇÝÊ",
            "CcReceiversName": "ãåã",
            "SentDate": "1393-03-03",
            "Status":"1",
            "HasAttachment":true,
            "Priority":"1",
            "Privacy":"1",
            "SentDateString":"ÏíÑæÒ",
            "IsForward":true,
            "IsReplied":true,
            "InboxId":"97002F44-BDC2-483D-A6CC-51A6479FB272",
            "ReferenceNumber":"1",
            "RefrenceDate":"1393-03-03",
            "ReferenceHasNote":true,
            "Labels":"test",
            "IsRead":true,
            "IsStarred":true,
            "IsImportant":true,
            "IsInInbox":true,
            "PriorityTitle":"ãåã",
            "PrivacyTitle":"ÓÑí",
            "RefrenceId":"97002F44-BDC2-483D-A6CC-51A6479FB272",
            "ReplyDeadLine":"1393-03-03",
            "HasPrevious":true,
            "TextBody": "<p><span style=\"background-color:rgb(231, 231, 231); color:rgb(51, 51, 51); font-family:fonixbyekan; font-size:14px\">مژده وصل تو کو کز سر جان بر خیزم&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; طایر قدسم و از دام جهان برخیزم</span><br />\n<span style=\"background-color:rgb(231, 231, 231); color:rgb(51, 51, 51); font-family:fonixbyekan; font-size:14px\">بوفای تو که گر بنده خویشم خوانی&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; از سر خواجگی کون و مکان برخیزم</span><br />\n<span style=\"background-color:rgb(231, 231, 231); color:rgb(51, 51, 51); font-family:fonixbyekan; font-size:14px\">یا رب از ابر هدایت برسان بارانی</span></p>\n"

        }
    ]
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: set "Text Format" invalid

Post by HighAley »

Hello.

Sorry, but we couldn't reproduce your issue.
There is no any error in our current build.

Here is what we get:
distr.jpg
distr.jpg (26.49 KiB) Viewed 5188 times
Post Reply