What is the best way to display a Word document inside a visual basic application
Posted on 2005-04-12
I have a question that hopefully one of the experts on this message board can please answer for me. I want to be able to store a Word document in a SQL Server database and retrieve it and display inside a Visual Basic 6 application with as minimal user steps and as cleanly as possible. What is the best way to do this? I have tried using the OLE control and it did not do what I want because it did not clip the document to the size of the OLE control for some reason when in view mode. I tried to use the Web Browser control but it asked the user if he wanted to download the file and I dont know how to turn that off. I tried using OLE Automation but I want the document to be inside the Visual Basic 6 application. Is that possible? I just want the user to be able to see the document, not edit it, and not be able to save the document or open another document using Word. Any help on choosing the best method would be greatly appreciated.