CodeSmith Community
Your Code. Your Way. Faster!

ExcelExportFileName

Latest post 12-27-2006 1:44 PM by Zedekiah. 6 replies.
  • 12-26-2006 3:04 AM

    • Zedekiah
    • Top 50 Contributor
    • Joined on 08-08-2006
    • Posts 74
    • Points 1,690

    ExcelExportFileName

    I dont see code generated to allow users to export the grid to an Excel Spread Sheet.  Must I write the code myself?
    Quis neget actum esse praeclare?
    • Post Points: 35
  • 12-27-2006 3:36 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 922
    • Points 34,710

    Re: ExcelExportFileName

    no, its in the EntityGridView source file.

    There are a couple of properties on the EGV relating to this - check themout.

    HTH

    swin

    ------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
    • Post Points: 35
  • 12-27-2006 9:15 AM In reply to

    • Zedekiah
    • Top 50 Contributor
    • Joined on 08-08-2006
    • Posts 74
    • Points 1,690

    Re: ExcelExportFileName

    EntityGridView is in web.ui

    I thought that is related to a web service.  I created a web service.  I still dont know how to use EntityGridView.  It would be nice to have a button on Admin/HrTermTrack.aspx that exports the whole thing to excel.  I am sure someone here has done just that.  There must be an example of this somewhere.

    Quis neget actum esse praeclare?
    • Post Points: 35
  • 12-27-2006 9:41 AM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 726
    • Points 16,910

    Re: ExcelExportFileName

    Zedekiah,

    EntityGridView is an extended version the GridView control. You use it the same way as you would GridView. Enabling the export via AllowExportToExcel property will place the link in the GridView pager section, that will let you to export the entire data to excel. 

    Zedekiah:

    EntityGridView is in web.ui

    I thought that is related to a web service.  I created a web service.  I still dont know how to use EntityGridView.  It would be nice to have a button on Admin/HrTermTrack.aspx that exports the whole thing to excel.  I am sure someone here has done just that.  There must be an example of this somewhere.

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 12-27-2006 10:44 AM In reply to

    • Zedekiah
    • Top 50 Contributor
    • Joined on 08-08-2006
    • Posts 74
    • Points 1,690

    Re: ExcelExportFileName

    I added

    AllowExportToExcel="true"

    but do not see anything in the pager section or anything to allow the user to export to excel. 

     

    Quis neget actum esse praeclare?
    • Post Points: 35
  • 12-27-2006 10:57 AM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 726
    • Points 16,910

    Re: ExcelExportFileName

    Check Website/App_Themes/default.skin file and see if AllowExportToExcel doesn't override the one you set on the page ...

    Zedekiah:

    I added

    AllowExportToExcel="true"

    but do not see anything in the pager section or anything to allow the user to export to excel. 

     

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 12-27-2006 1:44 PM In reply to

    • Zedekiah
    • Top 50 Contributor
    • Joined on 08-08-2006
    • Posts 74
    • Points 1,690

    Re: ExcelExportFileName

    I found it.  It may have been there all the time I just did not notice it.  I have 50 columns and I kept looking for it someplace else

     

    Thanks

    Quis neget actum esse praeclare?
    • Post Points: 5
Page 1 of 1 (7 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems