Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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">
share|improve this question

2 Answers 2

up vote 1 down vote accepted

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.

share|improve this answer
    
if it is impossible with sharepoint richtextbox..can it be possible using asp.net's richtextbox? –  spStacker Jan 4 '12 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. –  Ashish Patel Jan 4 '12 at 18:43

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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