Get Packed String from Designer

Stimulsoft Reports.JS discussion
Post Reply
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Get Packed String from Designer

Post by grbspltt »

How do I get a packed string from the report designer? Right now I'm getting it from the designer by hitting the publish button, select JavaScript, load report from string, and checking the box for include report as packed string.

I'd like to get the packed string from a button.

Kevin
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Re: Get Packed String from Designer

Post by grbspltt »

Clarification:

I'd like to get the packed string triggered by a button click via JavaScript. I'm saving the packed report string to a database.
Lech Kulikowski
Posts: 6239
Joined: Tue Mar 20, 2018 5:34 am

Re: Get Packed String from Designer

Post by Lech Kulikowski »

Hello,

Unfortunately, in the JS version, saving to the packed report is not available.

Thank you.
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Re: Get Packed String from Designer

Post by grbspltt »

Is there a way to save the report to a string from the JS designer, then load it into a StiReport JS object?
I was loaded it using the loadPacked function on the StiReport object.
Lech Kulikowski
Posts: 6239
Joined: Tue Mar 20, 2018 5:34 am

Re: Get Packed String from Designer

Post by Lech Kulikowski »

Hello,

You can sue the following method
report.saveToJsonString();

Thank you.
Post Reply