This is a migrated thread and some comments may be shown as answers.

RadWordProcessing - InsertImageInline

1 Answer 194 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Pinkesh
Top achievements
Rank 1
Pinkesh asked on 02 Oct 2015, 03:24 PM

Hi,

 

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 ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Boby
Telerik team
answered on 06 Oct 2015, 08:05 AM
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.

Regards,
Boby
Telerik
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
Tags
WordsProcessing
Asked by
Pinkesh
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or