tableChkList.ImportDataTable(dtChkList, False, 0, 0, 200, 2)
doc.Pages(1).Paragraphs.Add(tableChkList)
dtChkList has the record set returns from sql and one row has html code in it.
thanks.
tableChkList.ImportDataTable(dtChkList, False, 0, 0, 200, 2)
doc.Pages(1).Paragraphs.Add(tableChkList)
dtChkList has the record set returns from sql and one row has html code in it.
thanks.
Hi Ying,
Thanks for get back to me so fast.
I want to display a list. Since provider can have multiple locations.
in PDF it has
Here is how I generate PDF
Dim sqlCmdProvider As SqlCommand = New SqlCommand("Get_ProviderInfo")
sqlCmdProvider.Connection = m_Conn
sqlCmdProvider.CommandType = Data.CommandType.StoredProcedure
SqlCommandBuilder.DeriveParameters(sqlCmdProvider)
sqlCmdProvider.Parameters("@p_dr_chk_link").Value = dr_chk_link
Dim drProvider As SqlDataAdapter = New SqlDataAdapter(sqlCmdProvider)
'' label value
Dim dtProvider As DataTable = New DataTable("Provider")
drProvider.Fill(dtProvider)
drProvider.Dispose()
sqlCmdProvider.Dispose()
' Initializes a new instance of the Table
Dim tableProvider As Aspose.Pdf.Table = New Aspose.Pdf.Table()
'Set column widths of the table
tableProvider.ColumnWidths = "200 200 "
' Set the table border color as LightGray
tableProvider.Border = New Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All, 0.5F, Aspose.Pdf.Color.FromRgb(System.Drawing.Color.LightGray))
' set the border for table cells
tableProvider.DefaultCellBorder = New Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All, 0.5F, Aspose.Pdf.Color.FromRgb(System.Drawing.Color.LightGray))
Dim margin As Aspose.Pdf.MarginInfo = New Aspose.Pdf.MarginInfo()
margin.Top = 2.5F
margin.Left = 2.5F
margin.Bottom = 1.0F
tableProvider.DefaultCellPadding = margin
tableProvider.ImportDataTable(dtProvider, False, 0, 0, 200, 2)
doc.Pages(1).Paragraphs.Add(tableProvider)
thanks,
Ying
Hi Ying,
We apologize for your inconvenience.
The issues you have found earlier (filed as PDFNET-38034) have been fixed in Aspose.PDF for .NET 18.5. This message was posted using BugNotificationTool by asad.ali