Archive for June, 2009

iTextSharp – Adding Images

Maple leaves in Autumn.

Last week I showed how to use form fields to control placement of dynamic data.

But what if you want to dynamically place images in your PDF?  You can stuff them into a form field like you can with text.

However, one of the items you can retrieve from the form field is its location on the screen.  Using this, a little math, and some iTextSharp image code, we can place images in our PDF where the form field was located.  Here’s how I do it.

Read the rest of this entry »

Other Related Items:

The Slipper and the Rose [VHS]The Slipper and the Rose [VHS]You know the story: Cinderella rides in a magical pumpkin to the ball, enchants the prince, and flees at midnight. He finds her slipper and tracks her... Read More >
Belkin F3U133-10 Hi-Speed USB 2.0 Cable (10 Feet)Belkin F3U133-10 Hi-Speed USB 2.0 Cable (10 Feet)You've purchased the USB printer of your dreams, but faulty wiring keeps sending it error filled data. A Belkin Pro Series USB device cable will keep ... Read More >
Chicago and Earth, Wind &  Fire: Live at the Greek Theatre [Blu-ray]Chicago and Earth, Wind & Fire: Live at the Greek Theatre [Blu-ray]The teaming of legendary groups Chicago and Earth Wind & Fire was the tour hit of the summer. Playing to sold-out venues this spectacular show brought... Read More >

Hungarian Notation – Use What Works, Spit Out The Bones

ppl-kid-026

I am about to embark on the “religious” topic of naming conventions.  I was reminded of this topic by the short post, “Hungarian Notation, what do I think”, by Richard Dingwall.

I’m sure there will be those of you who will disagree with me, but as I’ve stated in previous posts, these general guidelines I’ve been using for .NET programming have served me well since .NET 1.0; they are meant as strong suggestions for those who are looking for guidance, not rules I expect the industry to adopt because I know better than anyone else.

In fact, while I will propose what I consider the “best” way, I will also provide some alternatives.

Read the rest of this entry »

Other Related Items:

Denon AVR990 7.1-Channel Multi-Zone Home Theater Receiver with Networking Capability and 1080p HDMI ConnectivityDenon AVR990 7.1-Channel Multi-Zone Home Theater Receiver with Networking Capability and 1080p HDMI ConnectivityFeaturing the latest high resolution surround decoders, including Dolby TrueHD and DTS-HD Master Audio, the AVR-990P is one of the first to feature Do... Read More >
Canon PowerShot SX200IS 12.1 MP Digital Camera with 12x Wide Angle Optical Image Stabilized Zoom and 3.0-inch LCD (Blue)Canon PowerShot SX200IS 12.1 MP Digital Camera with 12x Wide Angle Optical Image Stabilized Zoom and 3.0-inch LCD (Blue)Creating gorgeous images is more fun than ever with the sleek, impressively equipped PowerShot SX200 IS. Capture close-up, wide-angle shots with stunn... Read More >
Heater Trend Sports Starting Pitcher Pitching Machine and PowerAlley Batting CageHeater Trend Sports Starting Pitcher Pitching Machine and PowerAlley Batting CageImprove your batting average from the privacy of your own backyard! The Starting Pitcher Pitching Machine and PowerAlley Batting Cage from Trend Sport... Read More >

Pre Order Windows 7

Widnows7

Product Description
Windows 7 Ultimate is the most versatile and powerful edition of Windows 7. It combines remarkable ease-of-use with the entertainment features of Home Premium and the business capabilities of Professional, including the ability to run many Windows XP productivity programs in Windows XP Mode. For added security, you can encrypt your data with BitLocker and BitLocker To Go. And for extra flexibility, you can work in any of 35 languages. Get it all with Windows 7 Ultimate.

Read the rest of this entry »

Other Related Items:

Pro ASP.NET MVC FrameworkPro ASP.NET MVC Framework

Steven Sanderson has seen the ASP.NET MVC framework mature from the start, so his experience, combined with comprehensive coverage of all the new f... Read More >

Pond Skimmer NetPond Skimmer NetEG DANNER MFG - POND SKIMMER NETRoyal ID: ASP02134UPC: 025033021341Vendor: EG DANNER MFGTelescoping net designed for surface skimmingHeavy duty aluminum constructionTelescoping handle to 6.5"Soft, fish - safe nylon nettingSure-grip handle
AXIOM 20MB PC CardAXIOM 20MB PC CardPC Card 20 MB AXCS-ASP-FLC20M www.axiommemory.com 5 Year PC Card Axiom Memory Solutions 20MB PC Card Axiom 1

jQuery Dialog – With Validation Controls

sahara

Chances are, you’ll eventually want to use a dialog box in combination with some form elements, and when you do, you’ll probably want to implement some validation.

True, there are some great validation routines available in jQuery, but they only validate on the client side.  They are, after all, Javascript.

As you are probably aware, the advantage of using validation controls with ASP.NET is that they validate on both the client side and the server side and even if we assume that everyone using our web page is using Javascript and has it turned on, there is still the possibility that someone will turn Javascript off so they can circumvent your validations.

So how do we use validation controls AND allow the form to be a jQuery dialog?

Read the rest of this entry »

Other Related Items:

Tantric Partner YogaTantric Partner YogaPartner Play was created to give couples and partnered singles a variety of simple, fun tools to build intimacy and connection. It features a flowing ... Read More >

iTextSharp – The easy way

ka_vol1_038 - Copy

When I first started generating PDFs dynamically, I was overwhelmed by the complexity of the API.  Not just with iTextSharp, but it seemed that all of the APIs were complex.

In looking through the API and comparing it to what I was actually trying to accomplish, I found there was a very small subset of classes and methods that I needed to use to accomplish the task at hand.  Now that I’ve learned more, I still use this same subset of commands for 90% of what I need to do in iTextSharp.

Read the rest of this entry »

Other Related Items:

Adobe Acrobat Standard 9Adobe Acrobat Standard 9Item #: T05390. Adobe Acrobat Standard software enables business professionals to easily convert any electronic or paper document - even a Web site - ... Read More >
Bach: The Art of Fugue / Musical OfferingBach: The Art of Fugue / Musical OfferingThere are many apocryphal stories in the classical-music world, but the one in which Frederick the Great challenged Bach to improvise a six-part fugue... Read More >
Graphic Design Theory: Readings from the Field (Design Briefs)Graphic Design Theory: Readings from the Field (Design Briefs)The titles in our best-selling Design Brief series are highly praised by graphic design students, educators, and professionals worldwide as invaluable... Read More >
DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor