PRB: Setting Range.Value of Office Spreadsheet to a JScript Array Ignores Blank Entries (286315)
The information in this article applies to:
- Microsoft Office 2003 Web Components
- Microsoft Office Chart Component 9.0
- Microsoft Office XP Web Components
This article was previously published under Q286315 SYMPTOMS When you populate a range of cells in the Office
Spreadsheet Component from a Microsoft JScript array, if an element in the
array is empty (omitted), the corresponding cell is not skipped. Instead, the
next element of the array becomes the value of the next cell in the range being
populated. RESOLUTION Alternative solutions include:
- Replace the blank element of the array with an empty string
by using two consecutive quotation marks. -or-
- Create the array as a SafeArray in Microsoft Visual Basic
Script, and then populate the range in JScript and use the SafeArray as a
Variant. (Note JScript cannot create SafeArrays.)
Modification Type: | Minor | Last Reviewed: | 8/23/2005 |
---|
Keywords: | kbOfficeWebSpread kbprb KB286315 |
---|
|