0
Reply

How to apply CSS to Crystal Report in ASP.NET 2010

Ask a question
amol

amol

10y
1.3k
1
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.

Next Recommended Forum