Could I get a C# example on making calls to SaveSettings and LoadSettings using Streams? And as a bonus, could I get an example that shows _just_ saving the tool characteristics as compared to all settings?
I would like to save my user's "Set as default properties" for each tool (Pencil, Note, etc.) but not the position of the Panes or ...
Pseudo code:
Code: Select all
// Saving settings
Create stream?
_viewer.DoVerb("Tools", "SaveSettings", ?????, ?????);
// Loading settings
MemoryStream mstream = GetMySettingsFromSomePlace();
IStream istream = MemoryStreamToIStream(); ??????
_viewer.DoVerb(null, "LoadSettings", istream, ?????);
Also, the documentation indicates I can save the settings to an INI file. The current manifestation saves to a PDF. Is an INI even possible (not that I want to do that but ...)?
Thanks for the help.