473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error During compilation

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
~~~~~~~~~~~~~


Dec 16 '05 #1
0 1055

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: K. Shier | last post by:
when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler...
0
by: eswanson | last post by:
I have a site that has multiple web site projects. I got it working on my windows xp sp2 computer in pre-compiled mode. I created a new site on a windows 2003 server and copied the pre-compiled...
2
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access...
3
by: eswanson | last post by:
I have a site that has multiple web site projects. I got it working on my windows xp sp2 computer in pre-compiled mode. I created a new site on a windows 2003 server and copied the pre-compiled...
21
by: Mark Rae | last post by:
Hi, I have an ASP.NET 2 web application (not web site) project and am using a web deployment project to deploy to the testing, then the production server. All has been working well for months...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.