ngx-ssrs-reportviewer
ngx-ssrs-reportviewer copied to clipboard
Report server URL Merging
It's add additional "?/" symbols when merging the reportServer and reportUrl. Please refer the example.
http://myreportserver/reportserver?/MyReports/SampleReport&rs:Embed=true&rc:Parameters=true&rs:ParameterLanguage=en-us&rc:Toolbar=true
Due to this it's gives 404 error when calling the api.
Can you try with the latest version?
If you still are having the problem can you post your component.ts code where you are specifying the report.
Hi, I am fcing same issue, I have latest version.2.0.7
Here is my component code.
import { Component, OnInit } from '@angular/core'; import { SnackBarService } from 'src/app-shared/notifications/snack-bar/snack-bar.service'; import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], providers: [] }) export class AppComponent{
constructor() { }
// public reportUrl: SafeResourceUrl;
reportServer: string = 'http://XXXXXXXXXX/ssrsreports'; reportUrl: string = 'report/XXXX/XXXXXXXXXXX';
showParameters: string = "true"; language: string = "en-us"; width: number = 100; height: number = 100; toolbar: string = "true"; }
It produces url http://XXXXXXXXXX/ssrsreports?/report/XXXX/XXXXXXXXXXX&rs:Embed=true&rc:Parameters=true&rs:ParameterLanguage=en-us&rc:Toolbar=true
Where as changing url to this works. http://XXXXXXXXXX/ssrsreports/report/XXXX/XXXXXXXXXXX?&rs:Embed=true&rc:Parameters=true&rs:ParameterLanguage=en-us&rc:Toolbar=true
Any update on this? I'm facing the same issue. My code looks very similar to @dheerajsk. Please assist!
reportServer: string = 'http://
For me , it was a solution to add "ReportServer/Pages/ReportViewer.aspx" to reportServer.