2

I am creating a custom webpart by using SharePoint object model (using visual studio), which has a rich text box control on it and I'm trying to paste a screen shot of the screen. It seems that the richtext box does not support this functionaliy. Is there any way we can achieve this?

</asp:Label><SharePoint:InputFormTextBox
runat="server" ID="respRichTextBox" ValidationGroup="CreateCase" Rows="10" RichText="true"
TextMode="MultiLine" RichTextMode="FullHtml" AllowHyperlink="true">

2 Answers 2

1

I think you can not add images copied from Clipboard. You may need to upload it to images library (or any location that html's href attribute can refer) and refer it from there.

2
  • if it is impossible with sharepoint richtextbox..can it be possible using asp.net's richtextbox?
    – SandeshR
    Commented Jan 4, 2012 at 18:32
  • I think both will behave same because the rich text box's underlying data is HTML and HTML needs src attribute for the img tag which displays the image. Commented Jan 4, 2012 at 18:43
1

You would need an ActiveX control to grab the clipboard and handle the image. Check out http://www.codeproject.com/KB/graphics/ClipboardActiveX.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.