Problems with integration Vue

Stimulsoft Reports.JS discussion
Post Reply
qwertykqwertov911
Posts: 4
Joined: Thu Mar 03, 2022 9:32 am

Problems with integration Vue

Post by qwertykqwertov911 »

Good afternoon. I apologize in advance for my English. Faced a problem when integrating ReportJs in my Vue application. Method of connection via index.html and folder Public does not pierce for me. Installed StimulSoft-Reports-JS via NPM. Import scripts via node_modules. I get the following errors.
[Vue warn]: Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'Designer')"
I'm not too strong in this, so the error may be rather stupid, but if you specify me on her, I will be very grateful.

##TotalBalance.vue

Code: Select all

mounted: function() {
    console.log('Loading Designer view');

    console.log('Set full screen mode for the designer');
    var options = new window.Stimulsoft.Designer.StiDesignerOptions();
    options.appearance.fullScreenMode = false;

    console.log('Create the report designer with specified options');
    var designer = new window.Stimulsoft.Designer.StiDesigner(options, 'StiDesigner', false);

    console.log('Create a new report instance');

    console.log('Rendering the viewer to selected element');
    designer.renderHtml('designerContent');

    console.log('Loading completed successfully!');
  }
##main.js

Code: Select all

import 'stimulsoft-reports-js/Scripts/stimulsoft.reports.js'
import 'stimulsoft-reports-js/Scripts/stimulsoft.reports.js'
import 'stimulsoft-reports-js/Scripts/stimulsoft.designer.js'
import 'stimulsoft-reports-js/Scripts/stimulsoft.blockly.editor.js'
##index.html

Code: Select all

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>budget-app</title>
    <link rel="stylesheet" href="stimulsoft/stimulsoft.designer.office2013.whiteblue.css">
    <link rel="stylesheet" href="stimulsoft/stimulsoft.viewer.office2013.whiteblue.css">
  
  </head>
  <body>
    <noscript>
      <strong>We're sorry but budget-app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
Max Shamanov
Posts: 789
Joined: Tue Sep 07, 2021 10:11 am

Re: Problems with integration Vue

Post by Max Shamanov »

Hello,

Please check the following sample:
https://github.com/stimulsoft/Samples-JS
And attached sample.

Thank you.
Attachments
stimulsoft.zip
(440.39 KiB) Downloaded 167 times
qwertykqwertov911
Posts: 4
Joined: Thu Mar 03, 2022 9:32 am

Re: Problems with integration Vue

Post by qwertykqwertov911 »

Thanks for helping me.
Max Shamanov
Posts: 789
Joined: Tue Sep 07, 2021 10:11 am

Re: Problems with integration Vue

Post by Max Shamanov »

Hello,

You are welcome.
qwertykqwertov911
Posts: 4
Joined: Thu Mar 03, 2022 9:32 am

Re: Problems with integration Vue

Post by qwertykqwertov911 »

Hello, please help me again.
This application was activated with key. ( Stimulsoft.Base.StiLicense.Key = "..." ) Message about trial version missed, but trial watermark stay on page.
Why is this happening?
https://www.dropbox.com/s/9467n4jcqzrrl ... l.PNG?dl=0
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Problems with integration Vue

Post by Lech Kulikowski »

Hello,

Please send us your request with detailed description on support@stimulsoft.com.

Thank you.
qwertykqwertov911
Posts: 4
Joined: Thu Mar 03, 2022 9:32 am

Re: Problems with integration Vue

Post by qwertykqwertov911 »

Hello,
I tried using version 2022.1.5 and that solved my problem. Activation problem appears only in the latest version (2022.1.6).
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Problems with integration Vue

Post by Lech Kulikowski »

Hello,

Please send us your key for analysis on support@stimulsoft.com.

Thank you.
Post Reply