×
Namespaces

Variants
Actions
Revision as of 10:27, 5 July 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Opening an HTML document in the web browser using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Nokia 5800 XpressMusic
Compatibility
Platform(s): S60 3rd 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.


See also

This page was last modified on 5 July 2012, at 10:27.
104 page views in the last 30 days.
×