Formats incompability

Stimulsoft Dashboards.JS discussion
Post Reply
Tomi Urych
Posts: 5
Joined: Wed Jan 23, 2019 12:38 pm

Formats incompability

Post by Tomi Urych » Wed Mar 31, 2021 10:26 am

Hello,
I am using Stimulsoft report for about 11 years and first time I came across the problem I'm not able to solve it without your help.

I am using combination od Stimulsoft.JS Designer / Viewer on client side and Stimulsoft.NET on server side for rendering. Report is created in Stimulsoft.JS Designer and saved into database. When the report is printed, server renders report with Stimulsoft.NET, saves it with StiReport.SavePackedDocumentToString() and sends it to the client. Client loads the report with Stimulsoft.JS method StiReport.loadPackedDocument() and displays it with Stimulsoft.JS viewer.

This worked fine until I switched to 2020, resp.2021 versions. When I create simple report in JS version, put one textbox with borders into it, render report with NET version and send back to the client, borders are missing.

I tried to use another formats (saveDocumentToJsonString), but there is another problem with missing hyperlinks.

So my question is: is there any format which I am able to send report rendered in Stimulsoft.NET and view it with the Stimulsoft.JS version ?

Thank you for answer.

Regards
Tom
Lech Kulikowski
Posts: 3463
Joined: Tue Mar 20, 2018 5:34 am

Re: Formats incompability

Post by Lech Kulikowski » Wed Mar 31, 2021 1:11 pm

Hello,

Could you send us your report template (mrt) and rendered report (mdc) for analysis?

Thanky ou.
Tomi Urych
Posts: 5
Joined: Wed Jan 23, 2019 12:38 pm

Re: Formats incompability

Post by Tomi Urych » Thu Apr 01, 2021 6:45 am

Hello,
sending requsted.

Regards
Tom
Attachments
Test.mrt
(9.05 KiB) Downloaded 10 times
Test.mdc
(2.23 KiB) Downloaded 10 times
Lech Kulikowski
Posts: 3463
Joined: Tue Mar 20, 2018 5:34 am

Re: Formats incompability

Post by Lech Kulikowski » Tue Apr 06, 2021 11:11 pm

Hello,

We couldn't reproduce the issue on our samples.
Could you send us a sample project (JS side) that reproduces the issue for analysis?

Thank you.
Tomi Urych
Posts: 5
Joined: Wed Jan 23, 2019 12:38 pm

Re: Formats incompability

Post by Tomi Urych » Thu Apr 08, 2021 8:38 am

Hello,
sending simplified "code":
=================================================
Server side:
'Using Stimulsoft.NET 2021.2.1

Dim oReport As StiReport
'load report from XML template or compiled DLL ...
oReport.Render(False)

Dim sHTMLReport as String
'generate HTML page with rendered report and send it to the client
sHTMLReport &= "var STIreport = "
sHTMLReport &= "'" & oReport.SavePackedDocumentToString() & "';"
=================================================
Client side:
//Using Stimulsoft.JS 2021.2.1

//load reportObject from HTML page and initialize StiReport object
var reportObject „packedDocumentString….“
var _report = new Stimulsoft.Report.StiReport();
_report.loadPackedDocument(reportObject);

//display report in viewer
var options = new Stimulsoft.Viewer.StiViewerOptions();
var _viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
_viewer.report = _report;
_viewer.renderHtml("viewerContent");

Thank you.
Lech Kulikowski
Posts: 3463
Joined: Tue Mar 20, 2018 5:34 am

Re: Formats incompability

Post by Lech Kulikowski » Mon Apr 12, 2021 10:01 am

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#3883
Lech Kulikowski
Posts: 3463
Joined: Tue Mar 20, 2018 5:34 am

Re: Formats incompability

Post by Lech Kulikowski » Thu Apr 15, 2021 8:23 pm

Hello,

The issue is fixed. The fix will be available in the next release build.

Thank you.
Post Reply