Search found 12 matches

by titanotam
Wed Nov 01, 2017 1:43 pm
Forum: Stimulsoft Reports.JS
Topic: How to know when the report preview is rendered completely?
Replies: 13
Views: 6428

Re: How to know when the report preview is rendered complete

Hi, I solve my problem by using the jQuery event and looking for DOM change on the div that contains the rendered report. Since the DOM is changed continuously, I need to wait to make sure there is no DOM change event is fired anymore, then I continue to capture the report thumbnail var previewRende...
by titanotam
Tue Oct 17, 2017 10:14 am
Forum: Stimulsoft Reports.JS
Topic: How to know when the report preview is rendered completely?
Replies: 13
Views: 6428

Re: How to know when the report preview is rendered complete

HighAley wrote:Hello.

Unfortunately, there is no such event and the StiEndRenderEvent will not help you.
Maybe it will be better to export the report to HTML and then you can do with this HTML all that you need.

Thank you.
Ok, I'll try this

Thanks
by titanotam
Sun Oct 15, 2017 2:35 am
Forum: Stimulsoft Reports.JS
Topic: How to know when the report preview is rendered completely?
Replies: 13
Views: 6428

Re: How to know when the report preview is rendered complete

HighAley wrote:Hello.

Did you solve your issue?
Can you create a thumbnail?

Thank you.
Still not yet :(
I only create a full thumbnail after setting timeout for about 5000 ms. It’s not a good idea. :)

Can you please show me how to use the StiEndRenderEvent event?
by titanotam
Wed Oct 11, 2017 3:10 pm
Forum: Stimulsoft Reports.JS
Topic: How to know when the report preview is rendered completely?
Replies: 13
Views: 6428

Re: How to know when the report preview is rendered complete

Hello. But the report is stored not in HTML format. It's better to use an event of the Viewer. Please, look at this sample . Thank you. The html2canvas library can take the html DOM by jquery, then capture the image, in my case this is: html2canvas($('div.stiJsViewerPageShadow'), { <--- This is the...
by titanotam
Wed Oct 11, 2017 1:40 am
Forum: Stimulsoft Reports.JS
Topic: How to know when the report preview is rendered completely?
Replies: 13
Views: 6428

Re: How to know when the report preview is rendered complete

HighAley wrote:Hello.

Could you specify what you want to do in this event?

Thank you.
In this event, I use the html2canvas library to capture the image of report and save it as report thumbnail. So I need to make sure that the report is rendered completely
Thanks
by titanotam
Mon Oct 09, 2017 4:03 am
Forum: Stimulsoft Reports.JS
Topic: How to know when the report preview is rendered completely?
Replies: 13
Views: 6428

Re: How to know when the report preview is rendered complete

Aleksey wrote:Hello,

You can check the StiEndRenderEvent event.

Thank you.
Thanks, but could you please show me how to use this event?
by titanotam
Tue Oct 03, 2017 10:38 am
Forum: Stimulsoft Reports.JS
Topic: How to know when the report preview is rendered completely?
Replies: 13
Views: 6428

How to know when the report preview is rendered completely?

Hi, I'm working on the report preview panel, my report has a lot of charts and data. When I click the Preview button, it take too long for the report to render completely. And when it rendered, I will capture the report image for making its thumbnail. But I could not find any method that fires after...
by titanotam
Mon Sep 25, 2017 10:50 am
Forum: Stimulsoft Reports.JS
Topic: How to call Save function programmatically in designer?
Replies: 7
Views: 2560

Re: How to call Save function programmatically in designer?

Hello, You can use the following code: var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false); var customButton = document.getElementById("customButton"); customButton.onclick = function () { designer.jsObject.SendCommandSaveReport(); } Thank you. Nice...
by titanotam
Wed Sep 20, 2017 8:28 am
Forum: Stimulsoft Reports.JS
Topic: How to call Save function programmatically in designer?
Replies: 7
Views: 2560

How to call Save function programmatically in designer?

Hi,

My report designer has these options:

Code: Select all

this.options.toolbar.showFileMenu = false;
this.options.toolbar.showSaveButton = false;
... and I create a custom Save button but don't know how to call the save report function programmatically.

Someone please help me :)

Thanks