MathGroup Archive 2010

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

Search the Archive

Directing formatted output to different notebooks

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109433] Directing formatted output to different notebooks
  • From: Paul Howland <pehowland at gmail.com>
  • Date: Tue, 27 Apr 2010 04:05:27 -0400 (EDT)

Hello.

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
notebook.

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!

Paul


  • 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