DocumentMapText question

7 posts, 0 answers
  1. 勇誌
    勇誌 avatar
    8 posts
    Member since:
    Mar 2018

    Posted 08 May Link to this post

    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 ?

  2. Silviya
    Admin
    Silviya avatar
    413 posts

    Posted 09 May Link to this post

    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
  3. 勇誌
    勇誌 avatar
    8 posts
    Member since:
    Mar 2018

    Posted 09 May in reply to Silviya Link to this post

    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)

  4. 勇誌
    勇誌 avatar
    8 posts
    Member since:
    Mar 2018

    Posted 09 May in reply to Silviya Link to this post

    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 (? 
  5. 勇誌
    勇誌 avatar
    8 posts
    Member since:
    Mar 2018

    Posted 09 May in reply to Silviya Link to this post

    This Zip file is my test form

  6. 勇誌
    勇誌 avatar
    8 posts
    Member since:
    Mar 2018

    Posted 10 May in reply to 勇誌 Link to this post

    programs I used 
  7. Silviya
    Admin
    Silviya avatar
    413 posts

    Posted 14 May Link to this post

    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
Back to Top