DateTime Format Issue

Stimulsoft Reports.JS discussion
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

I had to

Code: Select all

report.dictionary.synchronize();
report.render();
viewer.report = report;
//then use: report.renderedPages.count;
viewer.renderHtml("viewerContent");
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateTime Format Issue

Post by HighAley »

Hello.

In some cases the rendering is possible in async mode only.
So you should call renderAsync() method next way:

Code: Select all

        var report = new Stimulsoft.Report.StiReport();
        report.loadFile("report/WorkOrder.mrt");
        report.renderAsync(function(){
           //then use: report.renderedPages.count;
        });
Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

I'll give that a try, I wasn't aware there were async methods with the StiReport Object
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateTime Format Issue

Post by HighAley »

Hello.

Please, let us know if you need our help.

Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

I haven't had a chance to test the async method yet, apologies.

However I discovered that between pre-release 2017.01.21 and 2017.02.17 that Report/Column/Page summing has changed or been broken. I've had to revert my JS files to 2017.01.21.

{Sum(DataBand, DataColumnName)} no long sums at all, it writes to the console:

Code: Select all

stimulsoft.reports.js:155 undefined
stimulsoft.reports.js:155 Expression in Text property of 'Total' can't be evaluated! undefined
Where 'Total' is in the report summary band. It also occurs in group footers as well.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: DateTime Format Issue

Post by Alex K. »

Hello,

We have made some improvements and fixes in that direction.
Please check the last prerelease build 2017.1.0.2 from 2017.03.10 and let us know about the result.

Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

Eyes must have skipped right over that release, it was in 2017.03.03 but seems fixed in 2017.03.10, thanks again.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: DateTime Format Issue

Post by Alex K. »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: DateTime Format Issue

Post by BCS »

Curious where is the text box padding opinions in the report designer or do I need custom css for that, seems to put padding 0px on all table cells in the html
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: DateTime Format Issue

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
Post Reply