Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. exporting to excel

exporting to excel

Scheduled Pinned Locked Moved Web Development
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mabrahao
    wrote on last edited by
    #1

    Hi guys, i am building a program to export some data to excel, i've used this code: Set ExcelApp = CreateObject("Excel.Application") ExcelApp.Workbooks.Add Set ExcelBook = ExcelApp.ActiveWorkbook.Sheets(1) ExcelBook.Cells(1,1).Value = "name" ExcelBook.Cells(1,2).Value = "code" ExcelBook.SaveAs "E:\inetpub\wwwroot\dominios\file.xls" ExcelApp.Quit() Set ExcelApp = Nothing Set ExcelBook = Nothing but, im having problems with the "code" cell, i need to transform this cell into a string or text type, and i dont know how to do this, i already tried ExcelBook.Cells(1,2).Type = String, and didnt work... can some one help me please???? thank u very much... and sorry for the bad english.

    G 1 Reply Last reply
    0
    • M mabrahao

      Hi guys, i am building a program to export some data to excel, i've used this code: Set ExcelApp = CreateObject("Excel.Application") ExcelApp.Workbooks.Add Set ExcelBook = ExcelApp.ActiveWorkbook.Sheets(1) ExcelBook.Cells(1,1).Value = "name" ExcelBook.Cells(1,2).Value = "code" ExcelBook.SaveAs "E:\inetpub\wwwroot\dominios\file.xls" ExcelApp.Quit() Set ExcelApp = Nothing Set ExcelBook = Nothing but, im having problems with the "code" cell, i need to transform this cell into a string or text type, and i dont know how to do this, i already tried ExcelBook.Cells(1,2).Type = String, and didnt work... can some one help me please???? thank u very much... and sorry for the bad english.

      G Offline
      G Offline
      Gaurav Dudeja India
      wrote on last edited by
      #2

      see this article How to export GridView to Excel, render cells, add WordArt, and fill a custom template[^]

      M 1 Reply Last reply
      0
      • G Gaurav Dudeja India

        see this article How to export GridView to Excel, render cells, add WordArt, and fill a custom template[^]

        M Offline
        M Offline
        mabrahao
        wrote on last edited by
        #3

        it doesnt work for me, i need it in ASP, not in .NET... and it cant be on , cuz the outher program that will read the file, cant read this

        (html) excel.... thank u anyway modified on Wednesday, February 10, 2010 10:49 AM -- Modified Wednesday, February 10, 2010 10:50 AM

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups