Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: styles not applied when exporting to PDF Post Reply Post New Topic
Author Message
babuk
Newbie
Newbie


Joined: 10 Feb 2009
Online Status: Offline
Posts: 1
Quote babuk Replybullet Topic: styles not applied when exporting to PDF
    Posted: 10 Feb 2009 at 2:33am
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.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.