W
Wayne Wood
i have a very large xls file whose size is nearly 30 M, i can export it
into XML format via Excel, and the target XML file is nearly 90 M. then
you can imagine that when i use Spreadsheet.XMLData to load the file
into Spreadsheet control, the program hangs...
the detailed code is listed here:
Dim reader As StreamReader = New StreamReader("xml_file_name")
Dim buffer As String = reader.ReadToEnd()
AxSpreadsheet1.XMLData = buffer
you can imagine the memory consumption is so big, and the code runs so
slow. i know reading such a large file into only one string variable
will be terrible, but if i do it several times, how can i give them into
Spreadsheet.XMLData property to load? do you have some good suggestions
thanks
in fact, i tried to copy the content from Excel into Spreadsheet, and
the process was also very slow. what's interesting is that when i
export the same content from Spreadsheet, also XML format, this file
achieved 160 M or so, which is so big, and is of so much redundant
information, because if i compressed the file, it fell into a very small
file, which is only 4 M or so.
thanks for listenning! if you have some good idea, please tell me
into XML format via Excel, and the target XML file is nearly 90 M. then
you can imagine that when i use Spreadsheet.XMLData to load the file
into Spreadsheet control, the program hangs...
the detailed code is listed here:
Dim reader As StreamReader = New StreamReader("xml_file_name")
Dim buffer As String = reader.ReadToEnd()
AxSpreadsheet1.XMLData = buffer
you can imagine the memory consumption is so big, and the code runs so
slow. i know reading such a large file into only one string variable
will be terrible, but if i do it several times, how can i give them into
Spreadsheet.XMLData property to load? do you have some good suggestions
thanks
in fact, i tried to copy the content from Excel into Spreadsheet, and
the process was also very slow. what's interesting is that when i
export the same content from Spreadsheet, also XML format, this file
achieved 160 M or so, which is so big, and is of so much redundant
information, because if i compressed the file, it fell into a very small
file, which is only 4 M or so.
thanks for listenning! if you have some good idea, please tell me