Click here to Skip to main content
15,888,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All

I am using crystal report in my web application. I used embed font (.eot,.woff,.ttf). for this i made class in css as follows
<style type="text/css">
@font-face
{
font-family: 'myFirstFont';
src: url('/Font/RNG1COR.eot'); /* IE9 Compat Modes */
src: url('/Font/RNG1COR.eot?#iefix') format('embedded-opentype'); /* IE6-IE8 */
src: url('/Font/RNG1COR.woff') format('woff'); /* Modern Browsers */
src: url('/Font/RNG1COR.TTF') format('truetype'); /* Safari, Android, iOS */
}

.txtBox
{
font-family: myFirstFont;
}
</style>

I want to use .txtBox class in Crystal report for this i already used following steps as per given on MSDN website

1.Right-click in the embedded Crystal Reports Designer and select Set CSS Class.
2.In the Object Scope field, select the objects or sections you would like the class to be applied to.
3.Enter the name of the class in the CSS Class Name field.

Tip Use CssClass in the Properties window to view, edit, or delete the class values for a specific report object or section.

4.Click OK.
5.Save the report.
6.Access the .aspx file in your project.
7.In the HTML tab of the .aspx file, reference an external style sheet that has the class already defined, or enter the class value.

But the problem is this is not working in Crystal Report. Please help me. I am facing this problem so long.
Posted

Check the link once and confirm the procedure you followed

how-to-apply-css-class-to-crystal-report-columns.aspx[^]
 
Share this answer
 
Comments
Amol Salunkhe 31-Oct-13 5:25am    
Thank you for your valuable suggestion.
But as i mentioned in my question I already performed these steps.
But it is not working, if you have any more solution please share with me.
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900