Add Font in Code Behind

Add Font in Code Behind

Forum member · Apr 16, 2010
Hi, I need a way to add a barcode font to my report. I am building the report myself in the code behind (ASP.NET C#), so I am not using the designer. I use a method like: report.Pages[page].Elements.Add(new Label(text, x, y, width, height, font, fontSize, textAlign)); The font parameter is one of the default fonts. Obviously it does not contain the font I need. How can I add a custom font to my report? Any help is appreciated. Jim

Re: Add Font in Code Behind

Support · Apr 16, 2010
Hello Jim, You can use the custom fonts without any problem by using the TrueTypeFont class. You can refer to the TrueTypeFont class on our help documentation. Thanks, ceTe Software Support Team.

Re: Add Font in Code Behind

Forum member · Apr 16, 2010
Was looking for that. Didn't look in the right places I guess ;-) Thanx a million Jim