Hi all,
I am experiencing a crash when I try to export an inline text box to a snippet (IDML file), using the ISnippetExport SDK interface with ExportPageItems() function.
The crash ONLY occurs when the inline box I want to export is not visible, that means that the inline box is in the overflow text of the parent frame. If the same inline box is visible -and not in the overflow text- the export works perfectly.
It Occurs both in Mac and Win, ID CS5.5 v7.5.4. The final crash report points to INXCore.rpln.
The code I'm using is exactly the same that in the code sample SnpImportExportSnippet::ExportPageitemsToFile() of the sdk codeSnippets:
ErrorCode SnpImportExportSnippet::ExportPageitemsToFile(const UIDList& uidList, const IDFile& idFile) { ErrorCode result = kFailure; do { InterfacePtr<IPMStream> stream(StreamUtil::CreateFileStreamWrite(idFile, kOpenOut, 'TEXT', 'CWIE')); if(!stream) { break; } stream->Open(); if (stream->GetStreamState() != kStreamStateGood) { break; } stream->SetEndOfStream(); result = Utils<ISnippetExport>()->ExportPageitems(stream, uidList); stream->Flush(); stream->Close(); } while(false); return result; }
Any suggestion, workaround, test or so will be appreciated.
Thanks a lot,
Blanca Sánchez.
North America
Europe, Middle East and Africa
Asia Pacific