This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ExportString Listing of Formats »

ExportString[expr, "format"]
generates a string corresponding to expr exported in the specified format.
ExportString[rules, {"format", "Rules"}]
gives explicit rules for different elements of the data to be exported.
ExportString[exprs, elems]
generates a string by treating exprs as elements specified by elems.
  • Many graphics, sound and binary formats yield strings containing non-printable characters.
Export in MathML format:
Show explicitly as a string:
Export a graphic in SVG format:
Many formats give strings containing non-printable characters:
Export in MathML format:
In[1]:=
Click for copyable input
Out[1]=
Show explicitly as a string:
In[2]:=
Click for copyable input
Out[2]//InputForm=
 
Export a graphic in SVG format:
In[1]:=
Click for copyable input
Out[1]=
 
Many formats give strings containing non-printable characters:
In[1]:=
Click for copyable input
Out[1]//InputForm=
In[2]:=
Click for copyable input
Out[2]//FullForm=
New in 4 | Last modified in 6