Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Mail Merge Documents With Aspnet

2,668 views

Published on

Slide deck from my presentation at the Rocky Mountain Tech Trifecta, February 27, 2010.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Mail Merge Documents With Aspnet

  1. 1. Creating Personalized Documents with a Mashup of Technologies<br />…and some other nifty stuff<br />James Johnson<br />Founder and President, Inland Empire .NET User’s Group<br />Microsoft MVP<br />e: james@iedotnetug.org t:@latringo<br />www.duringlunch.com<br />
  2. 2. Been around for a hundred bazillion years<br />Well actually since 2002<br />Build controls for<br />Web forms, MVC, Windows Forms<br />Silverlight, WPF<br />Testing Tools<br />A whole boatload of stuff<br />www.telerik.com<br />Telerik<br />
  3. 3. Founder and President of the Inland Empire .NET User’s Group<br />Independent Consultant<br />Microsoft MVP<br />ADHD/ADD/OCD when it comes to new technology<br />Can’t stay away from the shiny new stuff.<br />About Me<br />
  4. 4. Built custom system to generate large mail merge documents.<br />Needed way to integrate SQL Server, document editing, mail merge capabilities, and saving in Office 2007 format in an “access from anywhere” format.<br />Um… ok<br />Overview<br />
  5. 5. SQL Server 2008 for data storage<br />Entity Framework for data access<br />ASP.NET MVC for “access anywhere”<br />jQuery for building client functionality<br />TelerikRadEditor for document editing<br />OpenXML SDK for creating Office 2007 format docs<br />Architecture<br />
  6. 6. Ok, let’s see this wonderful thing<br />Demo<br />
  7. 7. Can take some time to grok<br />Somewhat similar to LINQ to SQL<br />But different<br />Main gotcha<br />Need to check for and load relationships of the entity<br />if (!doc.MergeDocumentTypeReference.IsLoaded)<br />doc.MergeDocumentTypeReference.Load();doc.MergeDocumentType.DocumentTypeId<br />Entity Framework<br />
  8. 8. So, yet something else to learn?<br />Demo<br />
  9. 9. Easy – to modify interface<br />Lots of Ajaxy goodness<br />Able to access from anywhere with a well known technology<br />Fast development<br />Just ‘cause<br />ASP.NET MVC<br />
  10. 10. A popular Rich Text Editor control for ASP.NET<br />Customizable, but with some pain<br />Formats text with CSS<br />Client side access to properties and methods<br />TelerikRadEditor<br />
  11. 11. But I don’t want it to look like that! <br />I want it to look like this!<br />Demo<br />
  12. 12. “OpenXMLis based on XML, which confers the benefits of preservation, interoperability, and extensibilty. It is designed to support the existing features of word-processing documents, presentations, and spreadsheets.” <br />www.openxml.biz<br />Format for generating Office 2007+ documents<br />Can use on a server<br />Easy, POCO functionality<br />OpenXML<br />
  13. 13. There must be something wrong. It can’t be *this* easy.<br />Demo<br />
  14. 14. Questions?<br />
  15. 15. Win the Telerik controls suiteTweet #telerik#rmtechtrifecta<br />

×