Navigation:  Interfaces (Technical API Reference) > Text Elements (paragraphs, objects, styles) > IWPTextObj > Methods >

LoadFromFile Method

Previous pageReturn to chapter overviewNext page

Applies to

IWPTextObj

Declaration

function LoadFromFile(const filename: WideString): WordBool;

Description

This method loads the contents of this object from a file.

Parameters

Filename

The path to an image file (JPEG, PNG, BMP, EMF).

Note: When working with a placeholder object which embeds data into a PDF file (See InputEmbeddedData) this method updates the embedded data, not the image! In this case the file may be in RTF, C# and various other formats!

Category

Load and Save

Image Support