Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report server URL Merging #11

Open
akalanka85 opened this issue Mar 5, 2019 · 4 comments
Open

Report server URL Merging #11

akalanka85 opened this issue Mar 5, 2019 · 4 comments

Comments

@akalanka85
Copy link

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.

@tycomo
Copy link
Owner

tycomo commented Apr 12, 2019

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.

@dheerajsk
Copy link

dheerajsk commented Sep 28, 2019

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

@FredyValstrauss
Copy link

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

@CatalinP95
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants