Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default send data to excel from c#

hi.
situation:
I have an ASP.net 2.0 (c#) web-application which writes an ID into an
excel document and lets the user download it. this is done with VSTO by
opening the excel-document with
Excel.Application app = new Excel.ApplicationClass();
Excel.Workbook wb = app.Workbooks.Open(filename, missing, missing,
missing, missing,
missing, missing, missing, missing, missing, missing, missing,
missing, missing, missing);

After this I write a CustomProperty where I save the GUID.
Nearly everything works fine but my problem is, that sometimes, when
something crashes, the process EXCEL.EXE doesn't go away or some other
strange things happen. Moreover this way is deprecated by Microsoft!

so i am searching for a way to send data to excel in a different way
from the server-side. It doesn't have to be a CustomProperty! It would
be enough if i could write to a column!! Best would be, if it's not
even necessary to have Excel installed on the server.

awaiting your suggestions,
cribe

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default send data to excel from c#

I have been wondering the same thing. As a quick solution I have been using
the clipboard as a way to communication between my two applications. While
working in excel my vba will call (start) my vb.net application which will
then respond by posting to the clipboard. My vba then consumes the
information.

I'm sure there is a better way to do this, but this method works for now.

" wrote:

hi.
situation:
I have an ASP.net 2.0 (c#) web-application which writes an ID into an
excel document and lets the user download it. this is done with VSTO by
opening the excel-document with
Excel.Application app = new Excel.ApplicationClass();
Excel.Workbook wb = app.Workbooks.Open(filename, missing, missing,
missing, missing,
missing, missing, missing, missing, missing, missing, missing,
missing, missing, missing);

After this I write a CustomProperty where I save the GUID.
Nearly everything works fine but my problem is, that sometimes, when
something crashes, the process EXCEL.EXE doesn't go away or some other
strange things happen. Moreover this way is deprecated by Microsoft!

so i am searching for a way to send data to excel in a different way
from the server-side. It doesn't have to be a CustomProperty! It would
be enough if i could write to a column!! Best would be, if it's not
even necessary to have Excel installed on the server.

awaiting your suggestions,
cribe


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 send data to a person or BCC a group in excel? jonathan k Excel Discussion (Misc queries) 3 May 28th 06 09:34 AM
My send to in excel/word does not offer send as attachment Mstink Excel Discussion (Misc queries) 11 March 16th 06 02:49 PM
macro to send data from word to excel tory04 Excel Programming 1 November 18th 03 05:43 PM
How can I send data from excel thru smtp bender Excel Programming 1 November 7th 03 12:48 PM
How to send data from Excel to a Database Bob[_32_] Excel Programming 1 August 28th 03 04:23 AM


All times are GMT +1. The time now is 12:10 PM.

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

About Us

"It's about Microsoft Excel"