Is there a list of what OCR fonts work in Active Reports?

Posted by: chris.horn on 3 March 2023, 2:13 am EST

    • Post Options:
    • Link

    Posted 3 March 2023, 2:13 am EST

    Our print shop vendor has told us that the font we are using is causing errors.

    They’ve suggested other OCR fonts for us to use, but when I try to use them Active Reports does not seem to pick them up for either PDF or printing.

    For example I am trying to use this one: https://www.fontshop.com/families/linotype-ocr-b/buy

    I see that AR does not support OTF fonts so I tried the TTF.

  • Posted 5 March 2023, 9:16 pm EST

    Hi Chris,

    To embed your custom fonts in Print/Export you’ll need to implement the FontResolver to specify the folder in your project which contains the true-type font ‘.ttf’ file(s). Make sure your font is licensed to be able to embed it in the Print/Export.

    You may learn more about FontResolver here Custom Font Resolver: https://www.grapecity.com/activereportsnet/docs/latest/online/custom-font-resolver.html

    Please find attached a sample application implementing Custom Font Resolver to embed a custom OCR font into the Exported PDF Document.

    Regards,

    Anand

    JSViewer_MVC_FontResolver.zip

  • Posted 6 March 2023, 1:52 am EST - Updated 6 March 2023, 2:10 am EST

    Hi,

    Thank you for your response. So I have a bit of confusion looking at this sample and how this applies to my situation. I don’t use a viewer at all. I print the reports, and save them as PDFs. I don’t use the Grape City Documents PDF Viewer. Is this a separate product we need a different license for?

    These are section reports we run mostly from batch applications.

    Is this solution still applicable for me, or do I need to do something else?

  • Posted 6 March 2023, 5:52 pm EST

    Hi Chris,

    As the FontResolver is assigned to a report object you can implement the same in any type of application.

    For the ‘GrapeCity.Documents’ package, yes it is another product by GrapeCity however, ActiveReports is dependent upon ‘GrapeCity.Documents’ so you don’t need to purchase a separate license for the same if it is getting called by ActiveReports references.

    Please find attached a ConsoleApplication sample using SectionReports, in which we have printed & exported the report using custom fonts to PDF.

    Regards,

    Anand

    ConsoleApp_Print_And_PDFExport.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels