Setup Stimulsoft with Angular 5

Stimulsoft Reports.JS discussion
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Setup Stimulsoft with Angular 5

Post by mrapi »

Hi,can you post a working project with webpack?
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Setup Stimulsoft with Angular 5

Post by Lech Kulikowski »

Hello,

Sorry, we do not use webpack, we are using Angular CLI: https://cli.angular.io/

Thank you.
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Setup Stimulsoft with Angular 5

Post by mrapi »

Too bad,In this case I can't use your product :(
all Visual Studio 2017 or VS Code templates for Angular+Asp Core are based on webpack
https://blogs.msdn.microsoft.com/webdev ... tservices/

there is no way to make it work?
thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Setup Stimulsoft with Angular 5

Post by Edward »

Hi Mrapi,

Sorry to learn that there is something that stops you from using our product.

Do you mind to send us a sample project based on these links to support[at]stimulsoft.com?

We will review it and will suggest on what could be done in that case?
Thank you,
Edward
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Setup Stimulsoft with Angular 5

Post by mrapi »

Hi Edward,I've sent sample project.thanks
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Setup Stimulsoft with Angular 5

Post by Lech Kulikowski »

Hello,

Thank you. We will reply to you by email.
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Setup Stimulsoft with Angular 5

Post by mrapi »

Hi.I got no email till now,meanwhile I've moved my project to angular.cli and your code works but it is only for designer,can you update the code for viewer sample too
https://github.com/stimulsoft/Samples-J ... er/Angular
that's what I need.now it gives me that error: No provider for Http !

Code: Select all

ERROR Error: StaticInjectorError(AppModule)[EditRezComponent -> Http]: 
  StaticInjectorError(Platform: core)[EditRezComponent -> Http]: 
    NullInjectorError: No provider for Http!
thanks
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Setup Stimulsoft with Angular 5

Post by mrapi »

any answer?thanks
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Setup Stimulsoft with Angular 5

Post by mrapi »

error is gone declaring HttpModule in app.module but inside my project (ASP Core) seems it can't find reports folder.got this in console:

Code: Select all

Failed to load resource: the server responded with a status of 404 (Not Found)   reports/Report.mdc
with simple angular cli project it works
thanks
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Setup Stimulsoft with Angular 5

Post by Lech Kulikowski »

Hello,

Please try to upload and recompile it again.

Also, please try to check the "assets" property in the .angular-cli.json:

"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico",
"reports"
],

Thank you.
Post Reply