Hi,
When I apply style to report it is visible in the html page. But when I export the report to
PDF, Word, Excel it is not available. How can I?
private ReportDocument rd;
protected void Page_Load(object sender, EventArgs e)
{
rd = new ReportDocument ();
rd.Load(Server.MapPath("CrystalReport.rpt"));
rd.SetCssClass(ObjectScope.DetailSections, "DetailSections");
rd.SetCssClass(ObjectScope.PageHeaderSections, "PageHeaderSections");
crystalReportViewer.ReportSource = rd;
} <style type = "text/css">
.DetailSections
{
color:red;font-family:Arial;
font-weight:bold;
background-color:#e2e2e2;
border:Solid 10px #ffffff;
}
.PageHeaderSections
{
font-family:Arial;
background-color:#e2e2e2;
border:Solid 10px #ffffff;
}
</style>Thanks,
Babu Kumarasamy.