TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amol
NA
208
193.7k
The document has no pages itextsharp error
Jul 7 2011 1:44 AM
Hi,
Please help to sort out this 1
Dim doc As New Document(PageSize.LETTER, 25.0F, 25.0F, 50.0F, 25.0F)
PdfWriter.GetInstance(doc, New FileStream(path, FileMode.Create))
doc.Open()
Dim page As Rectangle = doc.PageSize
Dim table As New PdfPTable(2)
table.TotalWidth = page.Width
Dim image As iTextSharp.text.Image = iTextSharp.text.Image.GetInstance("C:\Documents and Settings\Desktop\inner_logo.jpg")
image.ScaleAbsoluteHeight(80)
image.ScaleAbsoluteHeight(25)
image.Alignment = Element.ALIGN_RIGHT
Dim cell1 As New PdfPCell(image)
table.AddCell(cell1)
doc.Add(table)
doc.Add(New Paragraph(""))
doc.Close()
when i close the doc it throws the error as the document has no pagesT
Reply
Answers (
1
)
Typical problems with the .NET RichTextBox control
SqlTransaction has completed, it is no longer usable