Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS in Crystal Reports

Status
Not open for further replies.

ghesse

Programmer
Jun 16, 2003
51
US
Hello,

Crystal Reports .NET integrated in ASP.NET pages.

I'm trying to get my font to change on my objects in a report using a CSS.

I'll give you these code segments:

This is my style sheet code in aspx page:
<STYLE>
.mycss
{
background-color:808080; border-color:000000; color:000000; font-family:Arial; font-weight:bold; font-style:italic;
}
</STYLE>

This is the call to in on the back end of the aspx page:
CrystalReport1 crpt = new CrystalReport1();

ObjectScope scope = new ObjectScope();

scope = ObjectScope.AllReportObjectsInReportHeaderSections;

crpt.SetCssClass(scope, &quot;mycss&quot;);

CrystalReportViewer1.ReportSource = crpt;


The report I'm testing this on has two text objects with equal strings in them in different sections(testing the diffrences).

The style sheet takes over on background color but not font. What am I doing wrong here?

Thanks,
ghesse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top