Opening an HTML document in the web browser using Symbian C++
Article Metadata
Tested with
Devices(s): Nokia 5800 XpressMusic
Compatibility
Platform(s): S60 3rd Edition
S60 5th Edition
S60 5th Edition
Article
Keywords: CDocumentHandler, TDataType
Created: tepaa
(07 May 2009)
Last edited: hamishwillee
(05 Jul 2012)
Contents |
Overview
This snippet demonstrates how to open an HTML document in the web browser.
MMP file
The following libraries and capabilities are required:
CAPABILITY None
LIBRARY apmime.lib // TDataType
LIBRARY commonui.lib // CDocumentHandler
Header file
#include <DocumentHandler.h>
CDocumentHandler* iDocHandler;
Source file
// Create document handler
iDocHandler = CDocumentHandler::NewL(CEikonEnv::Static()->Process());
// Opens HTML document and browser for that
TDataType emptyDataType = TDataType();
iDocHandler->OpenFileL(_L("c:\\data\\test.html"), emptyDataType);
Postconditions
An HTML document is opened in the web browser.


(no comments yet)