MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Directing formatted output to different notebooks


I am dynamically creating a notebook from another notebook.

I would like to be able to display a formatted table in the
dynamically created notebook (e.g. equivalent of
Print[TableForm[...]]]).  Ideally, I would like to be able to direct
the output of the Print[] statement to the new notebook, rather than
the one that is executing the code.

However, SetSelectedNotebook[] doesn't appear to do this.

Using NotebookWrite does allow me to write to the new notebook, but
requires low-level manipulation of Boxes, etc.  It doesn't seem able
to take higher level formatting commands and direct these to the

Is it possible to do something like NotebookWrite[nb, TableForm[...]]
or to somehow re-direct normal Print output to the new notebook?  I'm
getting lost in GridBoxes, etc at the moment and there must be a
simpler way!

Many thanks for your help!


  • Prev by Date: 3D visulaisation of 3D matrix for a 3D CA
  • Next by Date: BinCounts to InterpolatingFunction
  • Previous by thread: Re: Sphere formula
  • Next by thread: Re: Directing formatted output to different notebooks