This documentation is archived and is not being maintained.

JournalReader Class

Provides read access to a Windows Journal file, returning a stream containing an XML version of the file’s contents.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.JournalReader (in Microsoft.Ink.JournalReader.dll)

[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class JournalReader

The JournalReader class enables you to load a Journal document stream and to receive an XML stream representing the contents. You can reconstitute, display, and manipulate the ink.

In this example, a selected Journal file is converted to XML and displayed to the Console device.

OpenFileDialog FD = new OpenFileDialog();
FD.Filter = "Journal files(*.jnt)|*.jnt";
if (FD.ShowDialog() == DialogResult.OK)
    Stream jntStream = null;
    Stream xmlStream = null;
        if ((jntStream = FD.OpenFile()) != null)
            xmlStream = JournalReader.ReadFromStream(jntStream);
            XmlDocument xmlDoc = new XmlDocument();
            XmlTextWriter xmlTW = new XmlTextWriter(Console.Out);
            xmlTW.Formatting = Formatting.Indented;
        // handle exception
        if (null != jntStream) { jntStream.Close(); }
        if (null != xmlStream) { xmlStream.Close(); }


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0