Developing Word Application using C# DSO Framer

This article explains how to display MS Word document programmatically using C# on windows or web form using DSO Framer Active-X control. The examples demonstrate how to automate the follo

ITPro Today

March 31, 2004

2 Min Read
ITPro Today logo

This article explains how to display MS Word document programmatically using C# on windows or web form using DSO Framer Active-X control.

The examples demonstrate how to automate the following activities:

Referencing DSO Framer Active-X control on form

Starting Word

Creating a new document


face=Verdana>Background

Automation is a process that allows applications to control other application for e.g. application developed using Visual Basic .NET or C# can programmatically control other applications. The automation process can be performed through the Object Model of the application which is controlled. Word exposes this programmatic functionality through an object model library. The object model is a collection of classes and methods that serve as counterparts to the logical components of Word. Automation to Word allows you to perform actions such as creating & opening documents, adding text to documents, saving documents in different formats, handling e-mail, mail merge, and formatting documents and much more. With Word and other Microsoft Office applications, nearly all of the functionalities which you would perform manually through the user interface are available to control through programmatically by using automation. You would find various objects such as Application, Document, Paragraph, Range etc., each of which contain the functionality of that component in Word.

You could invoke word document as document in word application or you could have a DSO Framer Active-X control on your form to host word document. DSO Framer Active-X control acts as an ActiveX document container for hosting Office documents (including Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Project, and Microsoft Visio documents) in a custom form or Web page. The control (Dsoframer.ocx) is lightweight and flexible, and gives developers new possibilities for using Office in a custom solution. You can find more information on DSO Framer Active-X with source code at http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q311/7/65.asp&NoWebContent=1

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like