Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.dotnet.framework.interop,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.

  #2   Report Post  
Posted to microsoft.public.dotnet.framework.interop,microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default 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
oups.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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I open an Excel file on XP system, saved on a Vista system JLS7 Excel Discussion (Misc queries) 3 December 2nd 08 04:21 AM
Can I create a sequential numbering system on an Excel document? Jamie Excel Discussion (Misc queries) 6 November 11th 08 06:34 PM
HELP - Not enough Memory, Out of system resource! Eric Excel Discussion (Misc queries) 4 June 30th 07 11:24 PM
HELP - Not enough Memory, Out of system resource? Eric Excel Discussion (Misc queries) 0 June 26th 07 02:12 PM
Storing Excel Data in System Memory Shashi Bhosale Excel Programming 2 May 27th 05 05:21 PM


All times are GMT +1. The time now is 12:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"