D
David Thielen
For the code:
private const int BLK_SIZE = 16000;
while (off < data.Length)
{
int len = Math.Min(BLK_SIZE, data.Length - off);
string cellData = data.Substring(off, len);
string loc = "A" + row;
Range rng = sheet.get_Range(loc, loc);
rng.Value2 = cellData;
off += len;
row++;
}
I am getting:
System.OutOfMemoryException occurred
Message="Not enough storage is available to complete this operation.
(Exception from HRESULT: 0x8007000E (E_OUTOFMEMORY))"
Source=""
StackTrace:
at System.RuntimeType.ForwardCallToInvokeMember(String
memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes,
MessageData& msgData)
at Microsoft.Office.Interop.Excel.Range.set_Value2(Object )
at
AutoTag2010.net.windward.autotag.excel.ExcelDocumentData.SaveProfileToDoc(ExcelFramework
app) in
C:\src\version9\AutoTag\AutoTag2010\net\windward\autotag\excel\ExcelDocumentData.cs:line
161
InnerException:
This occurs after writing the first 2 blocks and trying to write the
3rd block. This is being written to a hidden worksheet where this is
the only content in the sheet.
??? - thanks - dave
david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Cubicle Wars - http://www.windwardreports.com/film.htm
private const int BLK_SIZE = 16000;
while (off < data.Length)
{
int len = Math.Min(BLK_SIZE, data.Length - off);
string cellData = data.Substring(off, len);
string loc = "A" + row;
Range rng = sheet.get_Range(loc, loc);
rng.Value2 = cellData;
off += len;
row++;
}
I am getting:
System.OutOfMemoryException occurred
Message="Not enough storage is available to complete this operation.
(Exception from HRESULT: 0x8007000E (E_OUTOFMEMORY))"
Source=""
StackTrace:
at System.RuntimeType.ForwardCallToInvokeMember(String
memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes,
MessageData& msgData)
at Microsoft.Office.Interop.Excel.Range.set_Value2(Object )
at
AutoTag2010.net.windward.autotag.excel.ExcelDocumentData.SaveProfileToDoc(ExcelFramework
app) in
C:\src\version9\AutoTag\AutoTag2010\net\windward\autotag\excel\ExcelDocumentData.cs:line
161
InnerException:
This occurs after writing the first 2 blocks and trying to write the
3rd block. This is being written to a hidden worksheet where this is
the only content in the sheet.
??? - thanks - dave
david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Cubicle Wars - http://www.windwardreports.com/film.htm