Hi All,
I used the following code to import a snippet stream into the current active page of the document-
InterfacePtr<IDOMElement> documentElement(currSpreadUIDRef, UseDefaultIID()); if (documentElement == NULL) break; if ((status = Utils<ISnippetImport>()->ImportFromStream(tStream, documentElement)) != kSuccess) { //error } else{ //success }
(where tStream is the snippet's stream)
I've around 10 snippets and those are successfully imported into the current spread.
After a single snippet is imported I want to get the UIDs of the page elements of the imported snippet, as I've to do some manipulations. I tried to get them by attaching a doc observer and look for the new page elements; but this works partially and sometimes it crashed the application.
What's the way to do this?
Any help will be appreciated. Thanks.