in vb.net please if possible
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create a
Rectangleobject and set itsBackgroundColorproperty. Use yourRectangleto initialize yourDocument.This tutorial on the iTextSharp site on SourceForge describes this (see the PageSize section).
The same site has a code sample that demonstrates what you need to do. (see ‘step 1’). The sample is in C# and I know you want it in VB.NET so I ran it through the C# to VB.NET converter on the developerfusion site. I can’t test compile the results from the machine I’m not now, but the code looks reasonable:
Give it a try.