IWPTextCursor.InputEmbeddedData |
[Top] [Chapter] [Previous] [Next] |
Applies to Declaration int InputEmbeddedData( string imagefilename, int Mode,string datafilename, string dataparams, int datamode);
This method can be used to create a certain object which can also hold binary data. The binary data will be embedded into a PDF file when the internal PDF creation (optional feature) is used.
It is not possible to change the image later using IWPTextObj.LoadFromStream and IWPTextObj.LoadFromFile, these methods will update the attached data, not the image. The method Contents_LoadFromFile however will update the image data.
Returns 0 if not successful. Otherwise the interface CurrObj can be used to change image properties.
You can load data from a stream in this object by using CurrObj.LoadFromStream
System.IO.Stream str = new System.IO.MemoryStream(); pdf.Memo.SaveToStream( new WPDynamic.Stream2WPStream(str) ,false,"RTF"); pdf.Memo.CurrObj.LoadFromStream("Document.RTF", new WPDynamic.Stream2WPStream(str));
|