15
Creating Personalized Documents with a Mashup of Technologies …and some other nifty stuff James Johnson Founder and President, Inland Empire .NET User’s Group Microsoft MVP e: [email protected] t:@latringo www.duringlunch.com

Mail Merge Documents With Aspnet

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Mail Merge Documents With Aspnet

Creating Personalized Documents with a Mashup of

Technologies…and some other nifty stuff

James JohnsonFounder and President, Inland Empire .NET User’s

GroupMicrosoft MVP

e: [email protected] t:@latringowww.duringlunch.com

Page 2: Mail Merge Documents With Aspnet

Been around for a hundred bazillion years Well actually since 2002

Build controls for Web forms, MVC, Windows Forms Silverlight, WPF

Testing Tools A whole boatload of stuff www.telerik.com

Telerik

Page 3: Mail Merge Documents With Aspnet

Founder and President of the Inland Empire .NET User’s Group

Independent Consultant Microsoft MVP ADHD/ADD/OCD when it comes to new

technology Can’t stay away from the shiny new stuff.

About Me

Page 4: Mail Merge Documents With Aspnet

Built custom system to generate large mail merge documents.

Needed way to integrate SQL Server, document editing, mail merge capabilities, and saving in Office 2007 format in an “access from anywhere” format.

Um… ok

Overview

Page 5: Mail Merge Documents With Aspnet

SQL Server 2008 for data storage Entity Framework for data access ASP.NET MVC for “access anywhere” jQuery for building client functionality Telerik RadEditor for document editing OpenXML SDK for creating Office 2007

format docs

Architecture

Page 6: Mail Merge Documents With Aspnet

Ok, let’s see this wonderful thing

Demo

Page 7: Mail Merge Documents With Aspnet

Can take some time to grok Somewhat similar to LINQ to SQL But different Main gotcha

Need to check for and load relationships of the entity

if (!doc.MergeDocumentTypeReference.IsLoaded) doc.MergeDocumentTypeReference.Load();

doc.MergeDocumentType.DocumentTypeId

Entity Framework

Page 8: Mail Merge Documents With Aspnet

So, yet something else to learn?

Demo

Page 9: Mail Merge Documents With Aspnet

Easy – to modify interface Lots of Ajaxy goodness Able to access from anywhere with a well

known technology Fast development Just ‘cause

ASP.NET MVC

Page 10: Mail Merge Documents With Aspnet

A popular Rich Text Editor control for ASP.NET Customizable, but with some pain Formats text with CSS Client side access to properties and methods

Telerik RadEditor

Page 11: Mail Merge Documents With Aspnet

But I don’t want it to look like that! I want it to look like this!

Demo

Page 12: Mail Merge Documents With Aspnet

“OpenXML is 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.”

www.openxml.biz

Format for generating Office 2007+ documents

Can use on a server Easy, POCO functionality

OpenXML

Page 13: Mail Merge Documents With Aspnet

There must be something wrong. It can’t be *this* easy.

Demo

Page 14: Mail Merge Documents With Aspnet

Questions?

Page 15: Mail Merge Documents With Aspnet

Win the Telerik controls suiteTweet #telerik #rmtechtrifecta