Telerik Forums
Reporting Forum
1 answer
112 views

Hello,

Today i have made an update from R1 2018 to R3_2020_SP1_14_2_20_1021_DEV and now all my reports does not behave as usual.

For instance, a simple data ItemDataBinding of a PictureBox to populate the phisical path of an image is not working ... 

Same thing to htmltextbox ... it is not puting the value with ItemDataBinding to the report.

Can you help me? What do you need from me to solve my situation?

 

This is my code, that in the version R3 worked:

    Private Sub PictureBox3_ItemDataBinding(sender As Object, e As EventArgs) Handles PictureBox3.ItemDataBinding

        Dim item As Processing.ReportItemBase = DirectCast(sender, Processing.ReportItemBase)
        If IO.File.Exists(System.Configuration.ConfigurationManager.AppSettings("Images").ToString() & "cabecalho.PNG") Then
            PictureBox3.Value = System.Configuration.ConfigurationManager.AppSettings("Images").ToString() & "cabecalho.PNG"
        End If

    End Sub

    Private Sub HtmlTextBox12_ItemDataBinding(sender As Object, e As EventArgs) Handles HtmlTextBox12.ItemDataBinding

        Dim item As Processing.ReportItemBase = DirectCast(sender, Processing.ReportItemBase)
        If IO.File.Exists(System.Configuration.ConfigurationManager.AppSettings("Images").ToString() & "contrato_header.txt") Then

            Dim fileReader As String
            fileReader = My.Computer.FileSystem.ReadAllText(System.Configuration.ConfigurationManager.AppSettings("Images").ToString() & "contrato_header.txt")
            HtmlTextBox12.Value = fileReader

        End If
    End Sub

 

Thanks,

Nuno

 

Neli
Telerik team
 answered on 21 Jan 2021
5 answers
709 views
Hello,
I have a report with a background image. In the Report Designer the background image is correct, but in the report viewer the image is zoomed. When I export the report the image is correct.

How I can fix this?

Regards.
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 20 Jan 2021
5 answers
3.0K+ views
I have been experimenting with using Telerik Reporting now for a bit to replace an existing reporting component.  So far I have been impressed.  I have been recreating existing reports in Telerik and have recently come up against a wall.  I have a feeling it is a quick fix that is just eluding me.  I have a table that I can not add the total row to.  The "Add Total" option on the context menu is greyed out.  Am I missing something here?

Thanks.
Mads
Telerik team
 answered on 20 Jan 2021
3 answers
2.3K+ views

hi

I tried to use angular report viewer + dotnet core 3.1 to represent my report in Linux. The sample I refer to is
AspNetCore3 AngularReportViewer.zip ,

angular report viewer:11.20.1021

Telerik Reporting:14.2.20.1021

But I had two problems,
1,Set for .trdp definition

// Set for .trdp definition
this.viewer.setReportSource({
  report: 'Dashboard.trdp'
});

Error:Unable to get report parameters. An error has occurred. Type: Telerik.Reporting.ReportSerialization.V4_0.ReportSerializable`1[Telerik.Reporting.Report]
2,Set for Core Library definition

// Set for Core Library definition
this.viewer.setReportSource({
  report: 'ReportLibraryCore.SampleReport, ReportLibraryCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
 });

Error:Unable to get report parameters. An error has occurred. Invalid report type

Please refer to the attachment for details.

I want to know what caused my mistake and what I should do.
thank you.

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 19 Jan 2021
9 answers
235 views

I have a multicolumn report that I would like to have leading dots between the two fields, but I can not find setting in the designer.  How do I get the report designer to add leading dots between fields?  

 

Item #1 ...... Reference

Item #2 .. Reference #2

 

 

Neli
Telerik team
 answered on 19 Jan 2021
9 answers
1.0K+ views

Hi all,

I hope that you can help me.
I want to start using Redis cache for my reports but the initial few tests seem problematic as the entries in Redis have a TTL of -1 and therefore also never expires. I must be doing something wrong, any help would be appreciated.

Tech. stack:

  • ASP.NET Core 3.1
  • HTML5 Report Viewer
  • Telerik Reporting Version 14.2.20.916
  • Telerik.Reporting.Cache.StackExchangeRedis.2 Version 14.2.20.916

Code sample of the report configuration:

public ReportConfiguration(ApplicationConfiguration appConfig,
                           IConfiguration configuration,
                           IWebHostEnvironment webRoot,
                           ConnectionMultiplexer redisConnectionMultiplexer )
{
    var reportsPath = Path.Combine(webRoot.WebRootPath, "Reports");
    ReportingEngineConfiguration = configuration;
    HostAppId = "MyApp";
    Storage = new RedisStorage(redisConnectionMultiplexer, RedisCacheKeys.WebReport);
    ReportSourceResolver = new TypeReportSourceResolver().AddFallbackResolver(new UriReportSourceResolver(reportsPath));
    ClientSessionTimeout = 5;
    ReportSharingTimeout = 5;
}


Thanks in advance for your help.

Kind regards,
Jacques
Dimitar
Telerik team
 answered on 18 Jan 2021
5 answers
394 views

I created DataMatrix on Report Designer R3 2020 at next settings

    Encoder:  DataMatrix

    Encodation: Ascii

    SymbolSize: SquareAuto

    TextEncoding: Unicode (UTF-8)

    Module: 2pt

    Value:1

But, it could not read by barcode reader.

If the SymbolSize is "RectangleAuto", it can be read. But, I should be use "SquareAuto".

And, my barcode reader can read the same type DataMatrix generated by other web site generator .

Curiously, the DataMatrix for Reporting Designer reports and the DataMatrix for other websites are in the form of mirrors.

Can anyone tell me what's wrong?

Neli
Telerik team
 answered on 18 Jan 2021
4 answers
1.1K+ views

Hello Telerik Team,

I am using Telerik Standalone Designer.

IsNull Function is not working for me.

=IsNull(Fields.status, " ") 

My Response is "status": null,

It showing an error like this. "textbox cannot perform "=" Operation on Newtonsoft.Json.Linq.Jvalue and System.String"

i have attached screenshot of the error for the more information to help you.
Please Reply as soon as Possible.

Thanks In Advance.

Tyler
Top achievements
Rank 1
 answered on 17 Jan 2021
1 answer
112 views
Greeting, I was trying to save my report as pdf by using "report.SaveAs(C:\\ReportName.pdf)" from my C# project. But it happened to change the component style when I do so. Below is the attachments of the preview of report when using Visual Studio debug and when open the pdf file itself. Please help me on how to prevent this. Thanks
Neli
Telerik team
 answered on 15 Jan 2021
1 answer
175 views

I'm using a JsonDataSource, InlineData, and I'm trying to edit/paste JSON in the data field. This is resulting in a 500-error stating that the parameter stream cannot be null. This only happens when I edit this data field. If I edit other parts of my report, everything is fine.

It seems like this is a front-end error, because if I set a breakpoint on the Save-function it seems to Base64-encode this field unless I try to edit it manually. If I paste in the data as Base64-encoded, it saves as normally and displays correctly upon refresh.

Is this a bug, or is there something wrong in my setup?

Neli
Telerik team
 answered on 15 Jan 2021
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?