|
|
|
|
|
WorkingDirectory (Property) In french: RépertoireDeTravail
The WorkingDirectory property is used to: - get or change the directory used by the HTML Editor control to store the images and CSS sheets of an HTML page.
- get the directory used by the HTML Display control to store the images and CSS sheets of an HTML page.
- get or change the directory used by the Camera control to store videos and photos.
This property can only be used on Camera controls that are not in "Version-26-compatible mode".
Remarks: - HTML Editor control: when the control is used, a working directory is automatically created. This directory is deleted when the window or application is closed.
- HTML Display control: when HTMLFromEmail is used, a working directory is automatically created to save the images associated with the email. This directory is deleted when the window or application is closed.
- Camera control: when the control is used, a file save directory is assigned. By default, this directory is located in the application's private directory on the external storage.
// Copy an image to the directory and insert it into the document fCopyFile("logo.png", CompleteDir(HTMEDT_NoName1.WorkingDirectory) + "logo.png") HTMEDT_NoName1.Insert("<img src='logo.png'>")
Syntax
Getting the directory used by the control to store files Hide the details
<Result> = <Control used>.WorkingDirectory
Changing the directory used by the HTML Editor control to store files (images, CSS sheets, etc.) Hide the details
<HTML Editor control>.WorkingDirectory = <New directory>
Remarks - Images or CSS stylesheets with a file URL (i.e. starting with "file://") cannot be displayed by default when editing text in the HTML Editor control.
- To display images or CSS style sheets with a file URL (i.e. starting with "file://"), these files must:
- be located in the directory specified with the WorkingDirectory property.
- be relative. For example: <img src='myLogo.png' ...
- This directory is initialized with a temporary directory. This directory is deleted when the window or application is closed. For HTML Editor controls, it can be changed with the WorkingDirectory property. In this case, the specified directory is not deleted.
- The option in the HTML Editor control ribbon that allows you to insert images into the page automatically copies the images to this directory.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|