Good day,
I am trying to integrate SpreadJS of GrapeCity, I was able to run it but there is a problem when I tried to print, export, save, I think it has to do with the error in script during loading, I am attaching a sample project to demonstrate the issue, I tried to create a simple html file, everything is working, but when I embed it using widget, there is an issue.
Thanks.
Glenn,
I checked your code. What data is intended to be loaded into the grid ?
This line in your Init function does not make sense to me, so I uncommented it:
// spread.fromJSON(dataSource);
The grid then opens empty, you can type in some value and to export them,
simply change your exportpdf function (see at the end of this message).
Here you can simple reuse the reference this._spread that you are setting in the Init function.
Hope that gets you started into the right direction and helps you to figure out the other functionality.
Best regards
Frank
.fctbNone{ color:#000000; } .fctbStyle0{ color:#2e75b6; } .fctbStyle1{ color:#a31515; } this._spread.savePDF( function (blob) { console.log(blob); saveAs(blob, 'download.pdf'); }, console.log, { title: 'Test Title', author: 'Test Author', subject: 'Test Subject', keywords: 'Test Keywords', creator: 'test Creator' });
Yes, I have checked that, and I was able to run the grid, but only got the problem when I want to export, or print, or even convert to JSON. There was an error during load, which I already attached, and I also attached the sample project.
Hi Glenn,
did you check these samples ?
https://wisej.com/support/question/wisej-integrated-with-componentone-spreadjs
https://wisej.com/support/question/integration-js-widget-how-to-get-values-from-widget
They should help you to find out how to use the SpreadJS component in Wisej.
Best regards
Frank
Hi,
Any update on this?
Thanks.
Please see attached.
Hi Glenn,
I see the screenshot, can you attach the project as well?
Thanks!
Levie