try
{
OutputStreamWriter osw = new OutputStreamWriter(out, encoding);
BufferedWriter bw = new BufferedWriter(osw);
WorkbookParser wp = (WorkbookParser) w;
DrawingGroup dg = wp.getDrawingGroup();
if (dg != null)
{
EscherDisplay ed = new EscherDisplay(dg, bw);
ed.display();