DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 29 Jun 2007 07:34:31 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    unknown
          2    NickHK


Excel Interop with in-memory document - no file system   
I have Excel 2003 documents stored in a SQL 2005 database,
VARBINARY(MAX) column. I need to read the documents out of the table,
open them up, modify their header, and write them back to another
table. In .Net 2.0 is it possible to do all of this in memory using
the Excel interop interface, without writing the documents to the file
system? Thanks.
Date:Fri, 29 Jun 2007 07:34:31 -0700   Author:  

Re: Excel Interop with in-memory document - no file system   
Depends what you mean by "modify their header" ?
If you understand the binary format of the Excel file then yes anything is
possible, maybe using one of the BIFF Reader/Writer classes available as a
starting point.
Otherwise (and IMHO certainly the easier) is to use automation/interop and
allow Excel to make the changes, which will involve writing the file to disk
somewhere, then use Workbooks.Open

NickHK

 wrote in message
news:1183127671.356028.272760@n60g2000hse.googlegroups.com...

> I have Excel 2003 documents stored in a SQL 2005 database,
> VARBINARY(MAX) column. I need to read the documents out of the table,
> open them up, modify their header, and write them back to another
> table. In .Net 2.0 is it possible to do all of this in memory using
> the Excel interop interface, without writing the documents to the file
> system? Thanks.
>
Date:Tue, 3 Jul 2007 14:20:58 +0800   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us