So, we decided to go for a load balancer in the office and after a fair amount of head scratching, finally got it setup. As it was a little complicated, I thought I'd post a blog on it. We went for the Cisco RV042, mainly down to cost reasons. But it is confusing because none of the WAN options allow PPPoA (as used by alot of UK ISPs). I also went for two new modems (Zoom X4) but I believe any modem / router that can be setup in full bridged mode would be sufficient. We already had ...
Updated July 7th, 2011 at 07:29 AM by richyrich
I wanted to be able to format numbers to include commas every 3 numbers and then fix them to a certain number of decimals. There are a few different format functions out there and also JQuery plugins, but couldn't seem to find one that did exactly what I wanted, so ended up writing my own. Here's the code for anyone else looking for something that will format numbers to include commas using JQuery:- Code: (function ($) { $.fn.formatNumber = function (seperator, every, ...
(function ($) { $.fn.formatNumber = function (seperator, every,
This is a continuation of my blogs regarding generating PDF documents using iTextSharp. This one really had me stumped for a while and thanks to a couple of members on here, I was able to eventually solve the problem. I read several posts and threads about this issue, but none were solving my problem. I was using iTextSharp to generate a number of PDF documents to use in a back office ordering system. The main documents being a PDF invoice and delivery / packing note. ...
Just a quick update on iTextSharp again. In my previous blog I explained how to add headers and footers to your PDF documents generated using iTextSharp. I received a question about including page numbers in the footer of a document. This is very simple to do inside the OnEndPage override method of our PDFPageEventHelper inherited class. In my class I include a public property called showPageCount Code: public bool showPageCount { get; set; } So, from my PDF ...
public bool showPageCount { get; set; }
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 ...