CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    92

    auto refresh excel from data push

    Dear all,

    I am writing the socket programming.
    The server part has been done in c sharp vs2005. The server will push some
    data to the client every second.
    How can the excel be done so that excel can show the information from server
    and refresh every second??

    I plan to use c sharp dll function. But how can make the excel refresh every
    seconds by dll which has information alert to excel to show???

  2. #2
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Re: auto refresh excel from data push

    you mean to say excel will be on the client side.
    You can do one thing , create a timer at the client side and try to call the DLL function in that timer which inturn will call the excel application and updates the data on the work sheet in the excel file..

  3. #3
    Join Date
    May 2009
    Posts
    92

    Re: auto refresh excel from data push

    I have think of a method.

    Socket programming + Excel class programming in C Sharp DLL.

    In Dll, There is client and server programming. When data push from server, client will listen to it.
    When get data, update in the excel by using excel.applicationclass() to manipulate the cells in the workbook.open().

    But I am afraid about the error handling which will become very complicated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured