RadWordProcessing - InsertImageInline

2 posts, 1 answers
  1. Pinkesh
    Pinkesh avatar
    7 posts
    Member since:
    Sep 2015

    Posted 02 Oct 2015 Link to this post



    I have class library, i am trying to use 

    RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document); 
    Stream stream = new MemoryStream(RQST_ATTACH);
    editor.InsertImageInline(stream, "png", new System.
    Windows.Size(660, 237));​

     But System.Windows.Size is supported not supported in class library, is there any other way i can deal with this ?

  2. Answer
    Boby avatar
    586 posts

    Posted 06 Oct 2015 Link to this post

    Hello Pinkesh,

    Size type is in WindowsBase assembly (in WindowsBase.dll), so ensure that reference is added to it. Also, the latest versions of RadWordsProcessing has the RadFlowDocumentEditor. InsertImageInline(Stream stream, string extension) overload available, which automatically detects the size of the image before insertion.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top