This is a migrated thread and some comments may be shown as answers.

DocumentMapText question

6 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
勇誌
Top achievements
Rank 1
勇誌 asked on 08 May 2019, 06:51 AM

I got a big question!

 

I used reporting and its DocumentMapText 

The content of the DocumentMapText contains Chinese

but it can display Chinese it becomes symbols

 

what can I do to solve it ?

6 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 09 May 2019, 11:39 AM
Hello 勇誌,

May I ask you a few additional questions. Are these symbols are displayed in the preview mode of the report (from the designer) or in the report viewer? I it is in a report viewer, what type is it? A HTML-based, WinForms, WPF?

I tested with our latest service pack version (13.0.19.222) and it works as expected on my side. I couldn't reproduce the issue either in the designer's preview nor in the report viewer. Please check this screenshot for more information: https://www.screencast.com/t/WHqWrfAumT

Can you elaborate also which version you have currently installed? It would be very helpful if you can send us a reproducible report/project, so we can check it's settings.

Best Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
勇誌
Top achievements
Rank 1
answered on 10 May 2019, 12:10 AM

I used 

var IRS = new Telerik.Reporting.InstanceReportSource();
                                    IRS.ReportDocument = reportBook;

Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", IRS, deviceInfo);

to create a PDF , I tried to used report viewer mod and it can show Chinese
but after I created , it becomes some signs

I use WinForm to create PDF , and the version is (11.2.17.1025)

0
勇誌
Top achievements
Rank 1
answered on 10 May 2019, 02:37 AM
I tried to use version 13.0.19.222
but its DocumentMap Text is still in symbols ..

would you please give me your example for me (? 
0
勇誌
Top achievements
Rank 1
answered on 10 May 2019, 03:02 AM
This Zip file is my test form

0
勇誌
Top achievements
Rank 1
answered on 10 May 2019, 07:55 AM
programs I used 
0
Silviya
Telerik team
answered on 14 May 2019, 12:06 PM
Hi 勇誌,

Based on the latest information, I understand that you are using ReportProcessor to export the report (in your case, a ReportBook) at run time, without displaying it in a viewer. Then the exported PDF document contains symbols instead of chinese text.

Generally, you may see characters replaced with boxes in a PDF report when a font is *not* embedded in the PDF, and is missing from the client machine. Note that in the Designer Preview or rendering to HTML GDI will substitute the missing fonts in a way that is different from the way this will be done in PDF, hence the characters may still be displayed correctly (although with different font) in viewer preview, image and office formats, but appear as boxes in PDF. Check also PDF Rendering Font Requirements.

The PDF rendering extension embeds fonts by default. This functionality is controlled by the FontEmbedding device information setting. The PDF rendering can embed fonts that are installed on the machine where the application is running, or ones that are configured as privateFonts.
If the same machine is used to produce the reports (i.e. to run the REST Service) and to open the report (i.e. to run the project hosting the Report Viewer), then most probably the font is missing on this machine.

I suggest to assure that the specific font is available on the machine (either installed, or as a private font), and FontEmbedding is allowed for PDF rendering.

Best Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
勇誌
Top achievements
Rank 1
Answers by
Silviya
Telerik team
勇誌
Top achievements
Rank 1
Share this question
or