View RSS Feed

Programming & Scripting

  1. JQuery Plugin to include commas when formatting numbers

    by on April 7th, 2011 at 10:15 AM
    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,
    
    ...
  2. Including Special Characters in your iTextSharp PDF document

    by on January 24th, 2011 at 07:32 PM
    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. ...
  3. Set Initial PDF Document Zoom using iTextSharp

    by on June 28th, 2010 at 10:15 AM
    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 ...
  4. Using iTextSharp to generate PDF with Header and Footer

    by on June 26th, 2010 at 07:03 AM
    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 ...
  5. Generate PDF documents on the fly using ASP.NET and iTextSharp

    by on May 13th, 2010 at 05:53 PM
    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, ...
Page 1 of 2 1 2 LastLast

SEO by vBSEO