HighTechTalks DotNet Forums  

Excel Interop with in-memory document - no file system

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Excel Interop with in-memory document - no file system in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
mj2736@yahoo.com
 
Posts: n/a

Default Excel Interop with in-memory document - no file system - 06-29-2007 , 10:34 AM






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.


Reply With Quote
  #2  
Old   
NickHK
 
Posts: n/a

Default Re: Excel Interop with in-memory document - no file system - 07-03-2007 , 02:20 AM






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

<mj2736 (AT) yahoo (DOT) com> wrote

Quote:
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.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.