MathGroup Archive 2007

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

Search the Archive

Re: problems with Export to HTML

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78576] Re: problems with Export to HTML
  • From: dh <dh at metrohm.ch>
  • Date: Wed, 4 Jul 2007 05:44:40 -0400 (EDT)
  • References: <f6d676$l41$1@smc.vnet.net>


Hi Ken,

what you did is to export a string. If you want to export a notebook you 

you must export a notebook object. You can get such an object e.g. from 

SelectedNotebook[], NotebookCreate[], CreateDocument[] etc. Here is an 

example with SelectedNotebook:

Export["d:/tmp/t.html", SelectedNotebook[]]

the type is here taken from the extension.

hope this helps, Daniel



Ken Levasseur wrote:

> I've been trying to export a Notebook to a web page in Mathematica  

> 6.0 and have been unsuccessful using either the menu item "Save as"  

> or the Export  function.   If I use the menu item, I get a blank html  

> page.  If I evaluate the expression

> 

>             Export["Testing.html", "Testing.nb", "HTML"]

> 

> I get a page with just the string "Testing.nb"  in it.  I can see  

> why, but I also can't find documentation on how to use Export the  

> same way as HTMLSave, which is now obsolete.

> 

> HTMLSave does still work, but evaluating  the expression

> 

>          HTMLSave["Testing.html", "Testing.nb"]

> 

> doesn't  create a link to the contents of a closed group, if there is  

> one.

> 

> 

> Ken Levasseur

> UMass Lowell

> 




  • Prev by Date: Re: Re: Rotable Graphics and ViewPoint
  • Next by Date: Re: Version 6 code for Manger Sponge????
  • Previous by thread: Re: problems with Export to HTML
  • Next by thread: Re: problems with Export to HTML