Mail Merge Documents With Aspnet

  • Published on

  • View

  • Download


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


<ul><li> 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 Users Group<br />Microsoft MVP<br />e: t:@latringo<br /><br /></li> <li> 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 /><br />Telerik<br /></li> <li> 3. Founder and President of the Inland Empire .NET Users Group<br />Independent Consultant<br />Microsoft MVP<br />ADHD/ADD/OCD when it comes to new technology<br />Cant stay away from the shiny new stuff.<br />About Me<br /></li> <li> 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 /></li> <li> 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 /></li> <li> 6. Ok, lets see this wonderful thing<br />Demo<br /></li> <li> 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 /></li> <li> 8. So, yet something else to learn?<br />Demo<br /></li> <li> 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 /></li> <li> 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 /></li> <li> 11. But I dont want it to look like that! <br />I want it to look like this!<br />Demo<br /></li> <li> 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 /><br />Format for generating Office 2007+ documents<br />Can use on a server<br />Easy, POCO functionality<br />OpenXML<br /></li> <li> 13. There must be something wrong. It cant be *this* easy.<br />Demo<br /></li> <li> 14. Questions?<br /></li> <li> 15. Win the Telerik controls suiteTweet #telerik#rmtechtrifecta<br /></li> </ul>


View more >