Error During compilation

Discussion in 'ASP .Net' started by fabrice, Dec 16, 2005.

  1. fabrice

    fabrice Guest

    Hello,

    I m using vb.net and framework 1.1 whithout VisualStudio.
    I'm trying to compile a personnal tool class in one assembly using VBC.exe .
    But i get an error in compilation and i don't know why.
    I think i miss a link to one assembly.


    thanks for you help
    fabrice


    My command :
    ---------------------

    vbc /t:library /r:system.web.dll /r:system.dll
    /r:System.Data.dll /r:System.Drawing.dll exportxls.vb

    The part of my .vb file :
    ------------------------------

    'My Imports NameSpaces
    imports System
    imports System.Data
    imports System.Web
    imports System.web.UI
    imports System.Web.UI.WebControls
    imports System.Web.UI.HtmlControls
    Imports Microsoft.VisualBasic 'compilation and code generation for Visual
    Basic .NET language.


    'Procedure
    Public Shared Sub doExcelExport(ByVal myDataGrid As Control)

    With myDataGrid
    .Columns(1).Visible = False 'Suppression de la Colonne Famille
    .Columns(8).Visible = False 'Suppression de la Colonne d├ętail
    .PagerStyle.Visible=False
    .GridLines=GridLines.Both
    .HeaderStyle.Font.Size = FontUnit.Point(12)
    .HeaderStyle.BackColor = System.Drawing.Color.FromName("#FFFFFF")
    .borderwidth=Unit.Parse("1")
    .Borderstyle = BorderStyle.None
    .AllowSorting=False
    .EnableViewState = false
    .AllowSorting = false
    End With

    .......


    The error
    -------------------------


    exportxls.vb(25) : error BC30456: 'Columns' is not a member of
    'System.Web.UI.Control'.

    .Columns(1).Visible = False ~~~~~~~~

    ~~~~~~~~
    exportxls.vb(27) : error BC30456: 'PagerStyle' is not a member of
    'System.Web.UI.Control'.

    .PagerStyle.Visible=False
    ~~~~~~~~~~~

    exportxls.vb(28) : error BC30456: 'GridLines' is not a member of
    'System.Web.UI.Control'.

    .GridLines=GridLines.Both
    ~~~~~~~~~~
    exportxls.vb(29) : error BC30456: 'HeaderStyle' is not a member of
    'System.Web.UI.Control'.

    .HeaderStyle.Font.Size = FontUnit.Point(12)
    ~~~~~~~~~~~~

    exportxls.vb(31) : error BC30456: 'borderwidth' is not a member of
    'System.Web.UI.Control'.

    .borderwidth=Unit.Parse("1")
    ~~~~~~~~~~~~

    F:\myorpub\bin\exportxls.vb(33) : error BC30456: 'AllowSorting' is not a
    member of 'System.Web.UI.Control'.

    .AllowSorting=False
    ~~~~~~~~~~~~~
    fabrice, Dec 16, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Error Occured during compilation

    , Dec 29, 2005, in forum: C Programming
    Replies:
    17
    Views:
    979
    Kenny McCormack
    Dec 30, 2005
  2. Replies:
    2
    Views:
    360
  3. traveller
    Replies:
    0
    Views:
    1,183
    traveller
    Jan 8, 2008
  4. C__chp
    Replies:
    4
    Views:
    500
    Puppet_Sock
    Feb 15, 2008
  5. Dmitry Korolyov

    Datagrid not updated during delete, but updated during insert and update

    Dmitry Korolyov, Sep 22, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    406
    Dmitry Korolyov
    Sep 22, 2003
Loading...

Share This Page