Telerik Forums
Reporting Forum
5 answers
2.8K+ views

I have been given the task to look at a pdf export that can now export in languages with non latin characters (e.g. chinese/japanese/etc)

the exports just show squares instead of the characters which are displayed correctly in the preview.

I believe I need to embed a suitable font but I'm not having much luck. Am I missing something or approaching the problem in the wrong way?

My export function looks like this:

exportPdf: function (domElementId, fileName, landscape) {
            kendo.pdf.defineFont({
                "unicode-font": '../fonts/Unicode/unicode-font.ttf'
            });
            kendo.drawing.drawDOM('#' + domElementId, {
                forcePageBreak: ".page-break",
                paperSize: "A4",
                landscape: typeof landscape !== 'undefined' ? landscape : false,
                margin: "1cm",
                template: $("#pdf-page-template").html(),
            })
            .then(function (group) {
                return kendo.drawing.exportPDF(group, {});
            })
            .done(function (data) {
                kendo.saveAs({
                    dataURI: data,
                    fileName: fileName + ".pdf"
                });
            });
        }

 

I'm wondering if the relative path is the problem but I don't see any errors. I didn't set this up and have very little experience with your tools so I'm sure I am just missing something obvious.

 

Thanks for your help.

Ivan Danchev
Telerik team
 answered on 08 Jan 2021
3 answers
1.2K+ views

Telerik.Reporting Nuget package contains assembly Telerik.Reporting.OpenXmlRendering.2.7.2.dll.

This assembly requires installed DocumentFormat.OpenXml v2.7.2. But this dependency is missing in Telerik.Reporting.nuspec.

Neli
Telerik team
 answered on 08 Jan 2021
5 answers
651 views
Is there a way to import a word doc into a report footer?  I have a very long footer with lots of notes about the report and I am looking for the best solution to add the notes to the report.
Dimitar
Telerik team
 answered on 07 Jan 2021
1 answer
437 views

I want to make it so that if there is only one available option for a report parameter then it isn't visible.

Right now the best I can do is have it just have it select the first item and have the user ignore the drop down if they don't need it.

Todor
Telerik team
 answered on 07 Jan 2021
5 answers
1.0K+ views
hi guys,

here is my problem:
i have a Master report with some fields on it, and a couple of subreports.
they are all aligned to the right in design time as shown in "report in designer" attached picture.
(manually aligned with the designer grid lines)
at runtime all of the subreports are a little intended to the right of the fields as you can see in the second attached
picture "subreport margin problem2" (in the picture - 1 and 3 are subreports. 2 and 4 are fields on the Master report)

i tried making the subreports a little wider to the right - it didn't help.

i'm working with the latest internal build of reporting (4.1.10.729). radcontrols for wpf version: 2010.2.714.35
on visual studio 2008

any suggestions?

thanks.
Todor
Telerik team
 answered on 07 Jan 2021
1 answer
348 views
I have a report that I put together that has a cross tab table grouped on TitleUnitEmail address, and TitleNumber.  I'm trying to get a conditional format applied that will alternate the cell color by theTitleNumber group but I can't get it it work right.  For a regular table I know I can add = RowNumber()%2 and set the value to =1 and it works great but I can't figure out how to achieve the same result when I want the band to occur based on the TitleNumber group and not the Row Number.  Help?
Todor
Telerik team
 answered on 06 Jan 2021
2 answers
206 views

I apologize if an example of what I would like to do is in another thread. I tried searching for something similar but

I have a customer that would like to zoom in on the data points of a graph. I told them that I don't think that capability exists, but I could adjust the range of the graph so that they could better see where each data point exists in the swim lanes.

What I would like to do is either offset the data point labels that are off the chart, or create an x axis at the top of the graph containing the data point value for each week in the series. Is this feasible?

 

 

 

James
Top achievements
Rank 1
Veteran
 answered on 04 Jan 2021
3 answers
275 views

Hello guys, i'm having a big problem and this time i don't think it's possible to solve with telerik reporting.

I've a big accounting reporting with a lot of data, so eventually a lot of pages.

In this report i've groups, and i'm using the ColumnHeadearsPrintOnEveryPage = true. So far is OK. But the problem is, when the group break automatically i need to show one value of the last row of the page before in the Header.

Is it possible?

Todor
Telerik team
 answered on 04 Jan 2021
4 answers
393 views

 

Request URL:
http://localhost:5011/api/reports/clients/a424ed34405/parameters

Response error:

{
    "message": "An error has occurred.",
    "exceptionMessage": "Invalid report type",
    "exceptionType": "System.ArgumentException",
    "stackTrace": "   at Telerik.Reporting.Processing.TypeReportDocumentResolver.Resolve(IProcessingContext context, TypeReportSource rs)\n   
at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve(IProcessingContext context, ReportSource rs)\n   
at Telerik.Reporting.Processing.ReportDocumentResolver.<>c__DisplayClass0_0.<Resolve>b__0(IReportDocumentResolver r)\n   
at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](IProcessingContext context, ReportSource source, Func`2 func)\n   
at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(IProcessingContext context, ReportSource source)\n   
at Telerik.Reporting.Processing.ResolvedReportDocument.ResolveReportsRecursively(ReportSource rs, IProcessingContext context, IDictionary`2 parentRsParameters, Boolean parentShouldDispose, List`1 result, IReportDocument& definition, ResolvedReport& tocReport, ReportBookTocPosition& tocReportPosition)\n   
at Telerik.Reporting.Processing.ResolvedReportDocument.Create(ReportSource rs, IProcessingContext context)\n   
at Telerik.Reporting.Processing.DocumentParametersManager`1..ctor(ReportSource definition, IProcessingContext processingContext, IParameterValueParser parameterValueParser)\n   
at Telerik.Reporting.Processing.DocumentParametersManager..ctor(ReportSource rs, IProcessingContext processingContext, IParameterValueParser parameterValueParser)\n   
at Telerik.Reporting.Services.Engine.ReportEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)\n   
at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetParameters(String clientID, ClientReportSource reportSource)\n   
at lambda_method(Closure , Object , Object[] )\n   
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()\n--- End of stack trace from previous location where exception was thrown ---\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\n--- End of stack trace from previous location where exception was thrown ---\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"
}


sky
Top achievements
Rank 1
 answered on 28 Dec 2020
3 answers
247 views

I'm dynamically setting the value on a PictureBox to a api controller that resizes the image from storage and returns the bytes.

ex: https://localhost:44300/company-logos/4?width=96

 

Getting this error:

An error has occurred while processing PictureBox 'Logo':
Invalid image data.
------------- InnerException -------------
Too many automatic redirections were attempted.

 

This was working fine up until a couple weeks ago. Not sure what changed to be honest.

 

If I access the route directly, the controller works as expected (returns the resized image). When setting it in the report, the controller never gets called.

 

If I set the value to an external source, it's working. Of course the image isn't resized though.

ex: https://somedomain.blob.core.windows.net/logos/00000004/635939217942995665_FullSizeRender.jpeg

Nasko
Telerik team
 answered on 25 Dec 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?