InsertGraphicDialog Method

[Top]  [Chapter]  [Previous]  [Next]

Declaration

bool InsertGraphicDialog([In] string InitPath, [In] string Filter, [In] bool AsLink, [In] int PositionMode);

Description

Display a file open dialog to insert a graphic file.

Parameters

InitPath

Directory the dialog starts browsing

Filter

The file open filter, the default is "Graphic Files (*.BMP,*.WMF,*.JPG,*.GIF,*.PNG)|*.BMP;*.WMF;*.EMF;*.JPG;*.JPEG;*.GIF;*.PNG".

AsLink

If true the image will not be embedded, only the file name will be stored with the document.

PositionMode

0=as character, 1=link to paragraph, 2=link to page

Returns

true if an image was inserted. You can use 'CurrObj' to manipulate it.

Category

Image Support

Load and Save

 

RTF2PDF Note: This method is not included IWPEditor


[idh_iwpmemo_insertgraphicdialog_.htm]    Copyright © 2007 by WPCubed GmbH