CSimpleImporterClass.import( ) returning before processing is complete

K

Kawczynski

I'm calling the CSimpleImporterClass.import method form within a loop,
where each call imports a .tiff image that can be as small as 70KB or
as big as 300KB. There can be anywhere from 3 to 200 images. When the
iteration is complete, I retrieve the size of the OneNote file. This
number is small -- but given time, the actual size of the closed file
grows. It seems as if the import method is returning before the file
is completely written. It also seems that the import process continues
to process, until the file is completely populated with all of the
imported images. The time it takes for the file to stop growing varies
depending on the number of images being imported, and/or the size of
those images.

One possibility would be the writer that I use to import the content is
not being correctly closed, but I don't think that is the case as the
CSimpleImporterClass only has two methods: import and navigateToPage.

Has anyone experienced this before? Given the fact that I need to be
able to retrieve an accurate size of the new OneNote file, does anyone
know how I can go about determining when the import call is done its
work (recall that the import method appears to return before processing
is finished.)

TIA,
-dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top