D
dikeyus
I must use a component in my ASP.NET project but couldn't do it. There is a mistake anywhere .
I use Microsoft Visual Studio.NET 2003
I'm making a new project and add MSFlexGrid to my WebForm1.aspx
I'm adding MSFlexGrid from Project->Add References too
When Run this project it's give an error at WebForm1.aspx.vb at MSFlex.Col = 1
System.Runtime.InteropServices.COMException: The server threw an exception.
My WebForm1.aspx like this
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="geoview.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<OBJECT id=MSFlex classid=clsid:6262D3A0-531B-11CF-91F6-C2863C385E30>
<PARAM NAME="_ExtentX" VALUE="2646">
<PARAM NAME="_ExtentY" VALUE="1323">
<PARAM NAME="_Version" VALUE="393216">
<PARAM NAME="Rows" VALUE="2">
<PARAM NAME="Cols" VALUE="2">
<PARAM NAME="FixedRows" VALUE="1">
<PARAM NAME="FixedCols" VALUE="1">
<PARAM NAME="RowHeightMin" VALUE="0">
<PARAM NAME="BackColor" VALUE="-2147483643">
<PARAM NAME="ForeColor" VALUE="-2147483640">
<PARAM NAME="BackColorFixed" VALUE="-2147483633">
<PARAM NAME="ForeColorFixed" VALUE="-2147483630">
<PARAM NAME="BackColorSel" VALUE="-2147483635">
<PARAM NAME="ForeColorSel" VALUE="-2147483634">
<PARAM NAME="BackColorBkg" VALUE="8421504">
<PARAM NAME="GridColor" VALUE="12632256">
<PARAM NAME="GridColorFixed" VALUE="0">
<PARAM NAME="WordWrap" VALUE="0">
<PARAM NAME="Redraw" VALUE="-1">
<PARAM NAME="AllowBigSelection" VALUE="-1">
<PARAM NAME="ScrollTrack" VALUE="0">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="RightToLeft" VALUE="0">
<PARAM NAME="TextStyle" VALUE="0">
<PARAM NAME="TextStyleFixed" VALUE="0">
<PARAM NAME="FocusRect" VALUE="1">
<PARAM NAME="HighLight" VALUE="1">
<PARAM NAME="FillStyle" VALUE="0">
<PARAM NAME="GridLines" VALUE="1">
<PARAM NAME="GridLinesFixed" VALUE="2">
<PARAM NAME="ScrollBars" VALUE="3">
<PARAM NAME="SelectionMode" VALUE="0">
<PARAM NAME="MergeCells" VALUE="0">
<PARAM NAME="AllowUserResizing" VALUE="0">
<PARAM NAME="PictureType" VALUE="0">
<PARAM NAME="BorderStyle" VALUE="1">
<PARAM NAME="Appearance" VALUE="1">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="GridLineWidth" VALUE="1">
<PARAM NAME="FormatString" VALUE="">
<PARAM NAME="OLEDropMode" VALUE="0">
</OBJECT>
</form>
</body>
</HTML>
And My WebForm1.aspx.vb like this
Public Class WebForm1
Inherits System.Web.UI.Page
'Protected WithEvents MSFlex As MSFlexGridLib.MSFlexGrid
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim MSFlex As MSFlexGridLib.MSFlexGrid
MSFlex = New MSFlexGridLib.MSFlexGrid
MSFlex.Col = 1
MSFlex.Row = 1
MSFlex.Text = "abc"
End Sub
End Class
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
I use Microsoft Visual Studio.NET 2003
I'm making a new project and add MSFlexGrid to my WebForm1.aspx
I'm adding MSFlexGrid from Project->Add References too
When Run this project it's give an error at WebForm1.aspx.vb at MSFlex.Col = 1
System.Runtime.InteropServices.COMException: The server threw an exception.
My WebForm1.aspx like this
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="geoview.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<OBJECT id=MSFlex classid=clsid:6262D3A0-531B-11CF-91F6-C2863C385E30>
<PARAM NAME="_ExtentX" VALUE="2646">
<PARAM NAME="_ExtentY" VALUE="1323">
<PARAM NAME="_Version" VALUE="393216">
<PARAM NAME="Rows" VALUE="2">
<PARAM NAME="Cols" VALUE="2">
<PARAM NAME="FixedRows" VALUE="1">
<PARAM NAME="FixedCols" VALUE="1">
<PARAM NAME="RowHeightMin" VALUE="0">
<PARAM NAME="BackColor" VALUE="-2147483643">
<PARAM NAME="ForeColor" VALUE="-2147483640">
<PARAM NAME="BackColorFixed" VALUE="-2147483633">
<PARAM NAME="ForeColorFixed" VALUE="-2147483630">
<PARAM NAME="BackColorSel" VALUE="-2147483635">
<PARAM NAME="ForeColorSel" VALUE="-2147483634">
<PARAM NAME="BackColorBkg" VALUE="8421504">
<PARAM NAME="GridColor" VALUE="12632256">
<PARAM NAME="GridColorFixed" VALUE="0">
<PARAM NAME="WordWrap" VALUE="0">
<PARAM NAME="Redraw" VALUE="-1">
<PARAM NAME="AllowBigSelection" VALUE="-1">
<PARAM NAME="ScrollTrack" VALUE="0">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="RightToLeft" VALUE="0">
<PARAM NAME="TextStyle" VALUE="0">
<PARAM NAME="TextStyleFixed" VALUE="0">
<PARAM NAME="FocusRect" VALUE="1">
<PARAM NAME="HighLight" VALUE="1">
<PARAM NAME="FillStyle" VALUE="0">
<PARAM NAME="GridLines" VALUE="1">
<PARAM NAME="GridLinesFixed" VALUE="2">
<PARAM NAME="ScrollBars" VALUE="3">
<PARAM NAME="SelectionMode" VALUE="0">
<PARAM NAME="MergeCells" VALUE="0">
<PARAM NAME="AllowUserResizing" VALUE="0">
<PARAM NAME="PictureType" VALUE="0">
<PARAM NAME="BorderStyle" VALUE="1">
<PARAM NAME="Appearance" VALUE="1">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="GridLineWidth" VALUE="1">
<PARAM NAME="FormatString" VALUE="">
<PARAM NAME="OLEDropMode" VALUE="0">
</OBJECT>
</form>
</body>
</HTML>
And My WebForm1.aspx.vb like this
Public Class WebForm1
Inherits System.Web.UI.Page
'Protected WithEvents MSFlex As MSFlexGridLib.MSFlexGrid
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim MSFlex As MSFlexGridLib.MSFlexGrid
MSFlex = New MSFlexGridLib.MSFlexGrid
MSFlex.Col = 1
MSFlex.Row = 1
MSFlex.Text = "abc"
End Sub
End Class
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...