LotusScript to C API Programming Guide

rtLib Domino Rich Text Management template
Home
Show details for ContentContent
Purchase
Ready-to-use samples
Show details for Online resourcesOnline resources
Forum
Links
Happy readers

Anonymous

login


 

Hosted by Prominic.NET, Inc.
Main topic: Importing RTF File, problems with large size files

Importing RTF File, problems with large size files (by Mojca Krzan, 01/20/2004 05:13:26 AM)

Hello,

first of all, this is a problem description about the sample Importing RTF file from your book. Maybe I should post it on the forum of your web page

or in the comments section of the Importing RTF file page?

If so, then please let me know and I will paste this message there for all to see.

(But I will be doing it under the username of Mojca Krzan, since she is the one who purchased the book for out company).

If I try to use this sample without modifing, there is a problem if

the RTF file is large.

Details:

Function replaceRTItem:

In the function call to W32_ODSWriteMemoryNativeStr the parameter Cint(iLen) returns error Overflow, if iLen is too large.

To overcome this error I was thinking of splitting the String parameter imported into smaller chunks and calling the W32_ODSWriteMemoryNativeStr function in a loop.

But then the problem arrises in th call W32_NSFItemAppend (error: Memory allocation request exceeded 65000 bytes).

My questions:

1. Am I thinking in the right direction (splitting the imported parameter)?

2. If so then what is the best way to do it? (for now I was just splitting it up into 20kB pieces, but maybe I should be thinking of splitting it in terms of CD records)

3. Do you have any other suggestions how to  solve the main problem of large files.

Thanx in advance.