www.webdeveloper.com
Results 1 to 2 of 2

Thread: Open a Excel Templete and add data to it

  1. #1
    Join Date
    Jun 2004
    Location
    Kansas City, MO
    Posts
    1,607

    Open a Excel Templete and add data to it

    I have an excel templete.
    I would like to open this and then through code, populate
    some of the fields for the user.

    Now i have the code that will take the code on the page and
    create a new excel file to save or to open but i would like
    to do this with the templete.

    any ideas.

    This is the code i use to open the page as an excel sheet.
    Response.ContentType = "application/vnd.ms-excel"

    but i dont think this is going to work for what i want.

  2. #2
    Join Date
    Feb 2003
    Posts
    2,745
    Create a DLL. Add a reference to the Excel Object Library. Now you can do whatever you want programitcally before returning the result to the client. Here's a link to the Excel Object Model.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles