Posted 19 years ago
by Anton Sontheim

Hi,
I tried to use the macro serialize functions:I definitly know that there are commands in the memory stream.
But macro does not contain any command after ReadFromXml().
What is wrong ?
I tried to use the macro serialize functions:
m_marcoMemoryStream = New System.IO.MemoryStream
Dim w As XmlTextWriter = New XmlTextWriter(m_marcoMemoryStream, System.Text.Encoding.Unicode)
editor.MacroRecording.LastMacroCommand.WriteToXml(w)
w.Flush()
m_marcoMemoryStream.Position = 0
Dim reader As New System.Xml.XmlTextReader(m_marcoMemoryStream)
Dim macro As MacroCommand = New MacroCommand
macro.ReadFromXml(reader)
But macro does not contain any command after ReadFromXml().
What is wrong ?