Telerik Forums
Reporting Forum
1 answer
413 views

Good day,

I hope you can help me as I am battling getting the report viewer that is working well in another html/javascript project.

Now converting the application to Angular (8).

This loads the report viewer fine:

  <tr-viewer #viewer1 
  [containerStyle]="viewerContainerStyle"
  [serviceUrl]="http://localhost/RepService/ReportViewer/api/reports"
  [templateUrl]="'http://localhost/RepService/ReportViewer/templates/telerikReportViewerTemplate.html'"
  [viewMode]="'INTERACTIVE'"
  [scaleMode]="'SPECIFIC'"
  [scale]="1.0"
  >
</tr-viewer>

 

But this would need to be reconfigured when deploying, so to do that, this get's the closest:

In html file:

  <tr-viewer #viewer1 
  [containerStyle]="viewerContainerStyle"
  [serviceUrl]="serviceUrl"
  [templateUrl]="'http://localhost/RepService/ReportViewer/templates/telerikReportViewerTemplate.html'"
  [viewMode]="'INTERACTIVE'"
  [scaleMode]="'SPECIFIC'"
  [scale]="1.0"
  >
</tr-viewer>

 

In .ts file:

ngAfterViewInit() {
    this.serviceUrl = "'http://localhost/RepService/api/reports/'";

 

But getting the following:

The serviceUrl is not specified.

 

When I move that line to ngOnInit:

ngOnInit() {
    this.serviceUrl = "'http://localhost/XRSReportingService/api/reports/'";

Getting: Cannot access the Reporting REST service. (serviceUrl = ''http://localhost/XRSReportingService/api/reports/''). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)

 

So this doesn't look like a CORS issue to me.

Thanks very much

Neli
Telerik team
 answered on 06 Aug 2020
0 answers
299 views

I have created a new report and enable the ToolTip.  When the user rolls over the graph in the report.  The ToolTip comes up and shows the title and the text.  I want to add a second line to the text.  However, I can't seem to get it to work.  This is what I am doing.

I go into Visual Studio.  I select the desired graph.  Then Series - barSeries1 - ToolTip - Text.  I select to edit the expression.  I have added the following expressions and can't get the words "Encounter Count" to go on a second line.  I have tried the following expressions.

{Format('Month: {{1:MMMM yyyy}} {{0}} Encounter Count', "<br />", Fields.reportMonth)}
{Format('Month: {{1:MMMM yyyy}} {{0}} Encounter Count', "\n\r", Fields.reportMonth)}

{Format('Month: {{0:MMMM yyyy}}\nEncounter Count', Fields.reportMonth)}

Nothing seems to work. 


 

 

Rich Schone
Top achievements
Rank 1
Veteran
 asked on 06 Aug 2020
1 answer
428 views

I have recently purchased a new PC and would like to download the standalone executable for 2019 R1.

How do I do this?  Later releases introduced breaking changes which will no longer support my deployed reports.

Yana
Telerik team
 answered on 06 Aug 2020
3 answers
307 views

When there are both ascii characters and non-ascii characters (such as Chinese) in the text box, the position of line wrapping in Docker is incorrect.And some data lost.

The code: 

<?xml version="1.0" encoding="utf-8"?>
<Report Width="17cm" Name="Report2" xmlns="http://schemas.telerik.com/reporting/2020/2.0">
  <Items>
    <PageHeaderSection Height="2cm" Name="pageHeaderSection1" />
    <DetailSection Height="5cm" Name="detailSection1">
      <Items>
        <TextBox Width="2.9cm" Height="1.3cm" Left="0cm" Top="0cm" Value="textbox1113333333测试测试测试123456789" Name="textBox1" />
      </Items>
    </DetailSection>
    <PageFooterSection Height="2cm" Name="pageFooterSection1" />
  </Items>
  <PageSettings PaperKind="A4" Landscape="False">
    <Margins>
      <MarginsU Left="2cm" Right="2cm" Top="2cm" Bottom="2cm" />
    </Margins>
  </PageSettings>
  <StyleSheet>
    <StyleRule>
      <Style>
        <Padding Left="2pt" Right="2pt" />
      </Style>
      <Selectors>
        <TypeSelector Type="TextItemBase" />
        <TypeSelector Type="HtmlTextBox" />
      </Selectors>
    </StyleRule>
  </StyleSheet>
</Report>
Todor
Telerik team
 answered on 06 Aug 2020
2 answers
111 views

I was testing out the reporting tools from Telerik and I added a Telerik Report Viewer form. When I did so, it replaced one of my main user controls in my main winForm with a Telerik ReportViewer. I removed it and tried to put back my user control but now I am getting an error that says...

Failed to create component UserControl1... System.IO.FileNotFoundException…. Microsoft.Extensions.DependencyInjection.Abstrations was not found… or one of it's dependencies.

The only thing I did was add a Telerik Report Viewer winForm to my project. The wizard did kick off added a sample report and created a report folder with the sample. But nothing else. I don't understand what the Telerik template or wizard might have done to replace my user control and what happened to the DI.Abstractions reference. Does the template or wizard make changes to my references, something that might have caused a conflict?

It all seems a bit odd, like the Telerik template or wizard did something it was not supposed to. So I need to know how to get it back to where it was before. Then maybe I can start looking at Telerik Reporting options.

One thing I did notice is that whatever happened, the key is that it broke my user control. Then .NET seems to have substituted it with the Telerik Report Viewer control when I tried to view and identify the issue. SO the issue, it seems to have to do with breaking my control, not substituting the user control. I think that was .NET. 

 

Thanks,

Jon

 

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 05 Aug 2020
22 answers
3.1K+ views
hi!

i have a report that use the Crosstable item. I have defined a group that can have many items below it. If a group must split on two pages, is there a property to tell the crosstable to repeat the group details? and if there's a function to do that, is it possible to add something to the group details? on the following example, the second page will continue to print the Group2 details and i would like to add "group2 (continued)"

                   | col1   | col2   | col3
group1
   item1      1           2           3
   item2      1           2           3
   item3      1           2           3
   item4      1           2           3

group2
   item1      1           2           3
   item2      1           2           3

===== change page =====

                 | col1    | col2   | col3
group2 (continued)
   item3      1           2           3
   item4      1           2           3






alex
Todor
Telerik team
 answered on 04 Aug 2020
6 answers
295 views

Hello,

i have Telerik Reporting Q2 2015 SP1 running in an ASP.NET MVC App. 

There are 3 different instances of my app running on the same webserver (iis) - therefore i am using 3 different application pools.

The problem is that all 3 of those application pools are trying to use the same temp files. (eg: C:\Windows\TEMP\ProjectName\9.1.15.731\LCT\value.dat)

Only one of the application pools has the rights to access this temp file, so the ReportViewer of the other two instances is always giving me the error

"Error registering the viewer with the service. Access to the path 'C:\Windows\TEMP\ProjectName\9.1.15.731\LCT\value.dat' is denied."

How can i configure that every application can have it's own temp folder? I think it could be problematic if three apps use the same temp files, or is it possible to configure the access rights, so that every app can use the temp folder?

 

Thanks, Philipp

Katia
Telerik team
 answered on 04 Aug 2020
7 answers
418 views
Hi,

I have a report which contains two subreports in its details section. The subreports are very similar, each having one text field and one currency field in their details sections and a "Total" currency field in their footer sections using the =Sum() function. All of this works perfectly well, but I need to do some arithmetic in the main report footer section and this is where I have been pulling my hair out.

I need to access the values in the textboxes in the subreports footer sections from within the SubReport1_ItemDataBound and SubReport2_ItemDataBound event handlers of the main report so that I can process these values in the main report footer section. I have seen many threads similar to this one but nothing which demonstrates how to retrieve the textbox values from the places above at runtime.

Any help on this would be massively appreciated as I've tried a million approaches over the last two weeks and am thoroughly sick of this problem now.

Thanks,

Craig
Todd
Top achievements
Rank 1
 answered on 04 Aug 2020
1 answer
329 views

Hello,

I've got a problem with my groupHeader Section. 

I search to display him while my current page isn't the first page. I know that PageNumber or PageCount are available just in PageHeader of PageFooter.

I tried to used PageCount() butit doesn't work. 

 

I need some help please. Thanks.

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 03 Aug 2020
1 answer
133 views

Hi,

I have several tables in GroupFooterSection (several datasources). I need a standalone total field for each table. I need to do some math and display this info. My main problem is, I need a separated total field in the report. Not placed in table. Not right below the table. Not in an additional row of the table. Just a standalone field that has the total value of a table that I could use in this section in several places for math. Is it possible to do? Otherwise I have to calculate this totals on SQL side (not good).

Thanks.

 

Andrey
Top achievements
Rank 1
Veteran
 answered on 01 Aug 2020
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?