Skip navigation
Blanca S
Currently Being Moderated

Indesign crash in ExportPageitems()

Jun 13, 2012 3:37 AM

Tags: #cs5.5 #export #crash #inline #snippets

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.

 

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points