Telerik Forums
Reporting Forum
1 answer
117 views

Hi, I have a big fat object containing data for a report (printed report).

For ease of work i like to use subreports.

How can i pass the datasource from parent report to subreport? It does not make sense to recreate the objects on subreport since i already have them.

 

For sure exists some easy way but i can't find it.

 

Best Regards

 

Todor
Telerik team
 answered on 26 Jan 2021
1 answer
462 views

report can't export excel Error Internal Server Error Parameter is not valid.

 

{"message":"","exceptionMessage":"Parameter is not valid.","exceptionType":"Telerik.Reporting.Services.Engine.DocumentRenderException","stackTrace":"   at Telerik.Reporting.Services.Engine.Document.GetDocumentInfo()\r\n   at Telerik.Reporting.Services.Engine.ReportEngine.GetDocumentInfo(String clientID, String instanceID, String documentID)\r\n   at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetDocumentInfo(String clientID, String instanceID, String documentID)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__13.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__24.MoveNext()"}

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 25 Jan 2021
14 answers
846 views

Hi all,

I am attempting to build an invoice type of report. The goal is to have the customers bill to/ship to in the "Header", the items they ordered listed in the "Details" and the subtotal, taxes, grand total all in the "Footer".

I have the "Footer" set to print at the bottom of the page.

The challenge is to create vertical lines in the details section to separate the fields of information visually. I wish these to extend all the way down from the top of the "Detail" section to the top of the "Footer" section.

In Crystal Reports (sorry) I would draw a line from the top of one section and pass it into the next section.

How can this be achieved?

I attached a simple example of what I am seeing. In the picture, the goal is to extend that line all the way down to the area labeled as "Group Footer".

Todor
Telerik team
 answered on 22 Jan 2021
3 answers
120 views

Hi,

It has been observed that some blank rows with font size 1 have been inserted in one of our report. Could you please help us how to remove them?

 

I have attached sample report for reference.

 

Todor
Telerik team
 answered on 22 Jan 2021
7 answers
379 views

How do you format a text box to have a hanging indent?  In my report I want to see a multiline text box where the first line is at the left margin, but all subsequent lines are indented.

Ken
Top achievements
Rank 1
Veteran
 answered on 21 Jan 2021
1 answer
67 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
609 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
2.7K+ 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.0K+ 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
144 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
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?