In version 4 you had methods SaveToStreamWithWriter and LoadFromStreamWithReader
Now you seem to need to use SaveToStream(stream, classNameOfWriter)
Do you have to have registered this writer in some way?
Later...
Yes it seems you do - here's the bit of code that does this from WPIOHTML.pas
if GlobalWPToolsCustomEnviroment <> nil then
begin
GlobalWPToolsCustomEnviroment.RegisterReader([TWPHTMLReader]);
GlobalWPToolsCustomEnviroment.RegisterWriter([TWPHTMLWriter]);
end;
The problem I have now is - how do I set any properties of the writer at runtime if I don't create it? I can't see any events that would let me do this.