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, "mycss"
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
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, "mycss"
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