Telerik Forums
Reporting Forum
3 answers
410 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
164 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.6K+ 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
371 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
524 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
400 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
178 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
19 answers
748 views

The legend text is getting cut off.  There does not seem to be any pattern to the issue.  I am using Microsoft Visual Studio Community 2019 and have Telerik installed.  I have created several graphs and have gone into the graph properties of the graph.  I selected Series --- <Then the bar Series> --- LegendItem and entered the value.  The text is getting cut off.  Please note the post in other category. 

 

https://www.telerik.com/forums/legend-text-getting-cut-off

Rich Schone
Top achievements
Rank 1
Veteran
 answered on 31 Jul 2020
1 answer
922 views

Hi,

I am creating the Pie chart and I would like to show additional value, percentage and total in legend.

I tried to add the value and percentage in the label expression in Legend Item Value property as a string. But the value fields are not able to Right align.

How to add the total field in legend and how to format the label field in legend.

Any help will be highly appreciated.

 

Thanks.

Neli
Telerik team
 answered on 27 Jul 2020
1 answer
950 views

Hi,

I've created a trdp report (created parameters there) and trying to use it in blazor server side project. I've found the code below on Telerik doc page. Unfortunately there is no any code sample how to pass custom parameters here. Any example will help.

Thanks.

ReportViewer ViewerId="rv1"

ServiceUrl="/api/reports"

ReportSource="@(new ReportSourceOptions() { Report = "YOUR_REPORT_HERE.trdp" })"

Parameters="@(new ParametersOptions { Editors = new EditorsOptions { MultiSelect = EditorType.ComboBox, SingleSelect = EditorType.ComboBox } })" ScaleMode="@(ScaleMode.Specific)" Scale="1.0"

Andrey
Top achievements
Rank 1
Veteran
 answered on 25 Jul 2020
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?