locked
Itextsharp writing a paragraph and position RRS feed

  • Question

  • User364667109 posted

    I have a text field from a database that is extremely long, includes some html code

     

    How on earth can I get this to write to a pdf, I have managed to get the position write but the data is displayed in one long line.  

                    cb.BeginText()
                    cb.SetFontAndSize(bftitle, 20)
                    cb.SetRGBColorFill(121, 148, 157)
                    cb.ShowTextAligned(PdfContentByte.ALIGN_RIGHT, drresults.Item("product_name").ToString, 580, 710, 0)
                    cb.SetFontAndSize(bftitle, 13)
                    cb.SetRGBColorFill(126, 76, 193)
                    cb.ShowTextAligned(PdfContentByte.ALIGN_RIGHT, drresults.Item("Category_title").ToString, 580, 685, 0)
                    cb.EndText()


     

     

    Thursday, November 25, 2010 10:50 AM

All replies