Microsoft KB Archive/188599

= PRB: CDO Rendering Library Not Available Outside of ASP =

Article ID: 188599

Article Last Modified on 3/4/2004

-

APPLIES TO


 * Microsoft Collaboration Data Objects 1.1
 * Microsoft Collaboration Data Objects 1.2
 * Microsoft Collaboration Data Objects 1.21

-



This article was previously published under Q188599



SYMPTOMS
Some messages might not be rendered to Hypertext Markup Language (HTML) correctly, or error messages might be returned, when you use the CDO Rendering Library outside of an Active Server Page (ASP). Other results can also occur when you use the library in another environment other than Active Server Pages. For example, if you use the following line of code in a program written in Microsoft Visual Basic: objRenderer.RenderProperty(CdoPR_RTF_COMPRESSED) The following error can occur on certain messages:

Run-time error '-2147221245(80040103)'

Method 'RenderProperty' of object'_ObjectRenderer' failed



CAUSE
Because the CDO Rendering Library was designed for use with ASP-based applications, it can produce unexpected results when you run it in other environments.



RESOLUTION
If you need to develop an application in Visual Basic, you can use the Microsoft Outlook 98 Object Model to get the same functionality. For example, the Outlook 98 Object Model provides a way to obtain the text, Rich Text Format (RTF), or HTML of a message.



MORE INFORMATION
The CDO Rendering Library is dependent on the CDO Library. The purpose of CDO Rendering is to generate displayable output from CDO objects and properties. The output is sent in HTML to a Web browser and is generated from objects and properties referenced in an .asp file invoked by the browser. This process is known as HTML rendering.

Microsoft Active Server Pages (ASP) is a server-side scripting environment that you can use to create and run dynamic, interactive, high-performance Web server applications. When your scripts run on the server rather than on the client, your Web server does all the work involved in generating the HTML pages that you send to browsers. You need not worry whether a browser can process your pages because your Web server does all the processing for it.

An ASP script begins to run when a browser requests an .asp file from your Web server. Your Web server then calls ASP, which reads through the requested file from top to bottom, executes any commands, and sends an HTML page to the browser.

