Skip to content
Loading
Obviously this defeats the points of CSS and once again, that's why they're working on the new XMLWorker above.
 
Lastly, to use fonts by name you have to register them with iTextSharp first, it won't go looking for them:
  1. iTextSharp.text.FontFactory.Register(@"c:\windows\fonts\cambria.ttc", "Cambria");  
For backgroud color is through the HtmlTags class
  1. styles.LoadTagStyle(HtmlTags.HEADERCELL, HtmlTags.BACKGROUNDCOLOR, "Blue");  
+1
  • +1
    Hi Sankar,
     
    External css will not work while export. your need write style in inline, then only it will work. 
    +1
  • Sankara Krishnan Venugopal
    0
    Thank you Faisal.
    0