ngx-ssrs-reportviewer icon indicating copy to clipboard operation
ngx-ssrs-reportviewer copied to clipboard

Report server URL Merging

Open akalanka85 opened this issue 5 years ago • 4 comments

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.

akalanka85 avatar Mar 05 '19 07:03 akalanka85

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.

tycomo avatar Apr 12 '19 00:04 tycomo

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

dheerajsk avatar Sep 28 '19 07:09 dheerajsk

Any update on this? I'm facing the same issue. My code looks very similar to @dheerajsk. Please assist!

FredyValstrauss avatar Apr 29 '20 23:04 FredyValstrauss

reportServer: string = 'http:///ReportServer/Pages/ReportViewer.aspx'; reportUrl: string = '/<ReportName>';

For me , it was a solution to add "ReportServer/Pages/ReportViewer.aspx" to reportServer.

CatalinP95 avatar Dec 02 '21 11:12 CatalinP95