Hi samuel,
Thank you for replying and more information about the troubleshooting!
From my understanding now, you want to display the Excel data in .net
control and since there is no active document container for workbook, you
host the Excel workbook directly in IE window. Then you tried to open one
CSV file through the IE-hosted workbook, which reported the error 1004.
Based on my experience, if you want to display the Excel data in the Web,
the best choice is to use Office web component(OWC). The spreadsheet will
help you a lot in this scenario. I'd suggset you can use this instead of
the IE-hosted Excel workbook. You can transfer the Excel data in XML format
to the spreadsheet control and read the CSV file directly from the
spreadsheet and display the CSV as one new sheet in the spreadsheet.
Microsoft has released one OWC toolpack which contains the code sample and
new feature illustration for you which will help you obtain the OWC feature
very quickly. I list the owc download link with one useful MSDN link below:
Microsoft Office XP Web Component Toolpack
http://www.microsoft.com/downloads/details.aspx?FamilyId=BEB5D477-2100-4586-
A13C-50E56F101720&displaylang=en
Working with the Office Web Components
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/htm
l/deovrworkingwithofficewebcomponents.asp
The OWC version for OfficeXP is 10 version. And the newest version is OWC
11 in Office2003. This kb article 828950 will introduce the deploy method
for OWC 11.
828950 How to Deploy the Office 2003 Web Components in an Office 2003
Program
http://support.microsoft.com/?id=828950
Furthermore, if you are not going to use the spreadsheet now, I'd suggest
you can build one demo project with some necessary note for it. Then zip
them and mail the zipped pacakge to me. I will test this and try to provide
more assistance for you regarding this issue. To send me the file, please
remove "online." from my no spam alias "(e-mail address removed)". After
your delievering, please post in this thread to let me know. If I haven't
received this file, I will tell you my another email address. Thank you in
advance!
Please feel free to let me know if you have any further questions. I am
standing by to be of assistance.
Does this answer your question? Thank you for using Microsoft NewsGroup!
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.