Another iTextSharp blog post, this time on setting the initial zoom for a document. Couldn't find an exact example of how to do this, but managed to cobble this together from a variety of code snippets I found. You can set the initial zoom of a document using iTextSharp by adding a SetOpenAction method to the PdfWriter object. I found I could only add this once the document had been opened using doc.Open(), otherwise I got an "Object reference" error. This I presumed ...
This one had me struggling for a while, so I thought I'd post a blog about it to try and help others. What I was trying to do was create a PDF including header and footer sections to print documents onto a headed paper style. Using iTextSharp V5.0.2.0 DLL in the bin folder you can create PDFs on the fly. My previous blog explained how to generate a simple PDF. Next I wanted to generate something a bit more complicated. It seems previous versions of iTextSharp ...
As part of a project I'm working on, I have the need to generate PDF documents "on the fly" and then render them back to the browser. I was already aware of a dll module that provided this functionality, available at iTextSharp | Get iTextSharp at SourceForge.net so I thought I'd post a quick blog about how to get it working. Firstly, you need to place the .dll file in the bin directory of your application / website. I then created a new .aspx page, ...
We have several IMAP accounts setup with 1and1 for shared email accounts and users have recently started having problems where the password box would constantly popup. Outlook would also give an error of:- too many errors. Protocol: IMAP Server: imap.1and1.co.uk Port: 143 Error Code: 0x800CCCDD" Obviously this was causing lots of problems for users with several IMAP accounts. The solution I found ...
If you're like me, you don't like rewriting/copy & pasting validation code for controls that we use all the time. This enticed me to build a collection of these common controls that I can reuse in every application and save myself from a lot of typing. Thus the birth of JmhCommonControl. Currently, the JmhCommonControl assembly consists of 6 controls: NameEntry, PhoneNumber, SocialSecurity, Url, ZipCode, and CustomTextBox. Continue reading for information on each of these. ...