Hello Experts
I'm creating a Windows Application using VS2005, written in C#. This application contains a Web Browser control. I'm navigating to an XML document that uses a stylesheet to display this document correctly. When displayed correctly, it will display an image in one of the table cells that is present in the final output.
Using the mouse, I can right-click on the web browser control and choose Select All, and then right-click and choose copy. This will successfully copy the contents to the ClipBoard. The content can then be pasted into a Word document keeping the same formatting that was displayed in the Web Browser control.
I want to disable the right-right-click menu due to some of the other options on there. I was wanting to set up a button that when pressed will replicate the Select All and Copy activities.
I've tried various combinations of the ClipBoard.Set... commands and when I paste into Word I either get the plaintext HTML/XML code or a message is displayed that says "Item not Collected: Format not supported by Office Clipboard".
Can anyone help me to achieve this functionality using C#.
ASKER
Obviously I was focused too much on using the Clipboard control. Must remove the blinkers!!