Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 26, 2010 07:53 AM by ChewyNorman
Jul 21, 2010 11:32 AM|LINK
fine.. why dont you fill ur data to a gridview and export it to PDF
Jul 22, 2010 07:55 AM|LINK
I found a decent example of using iTextSharp using VB if anyone is looking for one....
Jul 22, 2010 09:27 AM|LINK
1. Dim doc1 As New Document()
2. Dim path As String
3. path = "C:\Users\Dave\documents\visual studio 2010\Projects\QualitechInterface\QualitechInterface\PDFs\"
4. PdfWriter.GetInstance(doc1, New FileStream(path + "Doc1.pdf", FileMode.Create))
6. Dim tbl As New PdfPTable(3)
10. Dim connectionString As String = "Server=Dave-PC\Qualitech;Database=QualitechPortal;Trusted_Connection=True;"
11. Dim cn As SqlClient.SqlConnection = New SqlClient.SqlConnection(connectionString)
13. Dim command As New SqlClient.SqlCommand()
14. command.Connection = cn
15. command.CommandText = "Select Number, Name, Description From Numbering"
17. Dim sqlDa As New SqlClient.SqlDataAdapter(command)
18. Dim dt As New DataTable
Ok so the code i have so far is as shown above. This works on the most part however when producing the table in the pdf if only adds the first row into the table then adds no more information any idea why this is? Also while I am on the topic; I am wanting
to make it so that there is a table above and below the main table that will have compnay information, this means there will only be a limited amount of space for the main table, can I automate it so that if the main table is too large iTextSharp will produce
a new page add the header and footer and add the files to the main table?
Jul 22, 2010 03:32 PM|LINK
Anyone out there that can help?? please
Jul 26, 2010 07:53 AM|LINK
Does anybody out there know how to add headers and footers using itextsharp 5, from what I can find on the net most websites use iTextSharp and they seem to be different methods...
I really need some help on this if you can