What can I use to display MS Word docs contained in the OLE field?
to start the desktop and the web are 2 very different environments. a desktop app runs on windows and is stateful. a web app generates html that is then rendered, typically in a browser, on a client's machine. that machine could be any browser on any OS. the web is also stateless.
2nd, typically you don't find MS Office loaded onto a web server, and even then the web server usually locked down so it couldn't access MS Office components anyway.
what you can do is load the document (either from file or database) into a MemoryStream. then you can pass the memory stream to the asp.net output stream and set the response headers to the appropriate type. something like "application/vnd.msword".
The server doesn't know it's loading a MS Word document. it just knows it's load a stream of data. The response headers allow the browser to interpret what type of content was returned from the server and appropriately display the content.
Why has MS chosen not to include such a simple and useful control?
Access is a tightly integrated application with the intention of allowing business users to design programs for the desktop using MS Office.
The .net platform is designed to create a common runtime environment so the application can run on, just about, any machine.
In other words Access and .Net are totally different tools that are designed to solve very different problems.
the asp.net framework is designed to handle http request/response. asp.net has nothing to do with the desktop, ms office, databases etc. asp.net is built on top of the .net framework.
webforms is an html engine built on top of asp.net. it's purpose is to generate dynamic html content.
Jason Meckley
Programmer
faq855-7190
faq732-7259