BaseDir Property
Set path to an alternative base directory in addition to the default base
directory. The default base directory is taken from the <BASE> tag
of the current input HTML file. If <BASE> tag is missing, the base
directory is the directory where the current input HTML file is located. When
any external resources (e.g. images, scripts or
style sheets) are not found, WebArchiveX parser looks for these resources in
the alternative base directory.
Please
note that there may be several input files if AddResourceTag
method is used. For example if one calls AddResourceTag("a",
"href") before archiving, WebArchiveX parser will include files
referred by <A HREF> tags in the final web archive MHT. The same
result is expected for <FRAME SRC="..."> and <IFRAME
SRC="..."> tags.
Script Syntax
Show Syntax
C++ Syntax
Show Syntax
HRESULT put_BaseDir(
[in] BSTR bstrPath
);
HRESULT get_BaseDir(
[out] BSTR* bstrPath
);
Parameters
- bstrPath
- [in] BSTR, [out] BSTR * - path to an alternative base directory
Library C++ Syntax
Show Syntax
void SetBaseDir(
const std::string& sPath
);
std::string get_BaseDir();
Parameters
- sPath
- std::string - path to an alternative base directory
- Back to API - WebArchiveX
Website - C Systems Website -
C Systems - Creative software solutions since 1996. All rights reserved. Terms of use.