下面的是用户控件的代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Specter.BusinessLogic.OrderLogic;namespace Specter.ActiveXEngine.SysOrder
{
[Guid("DE2E497D-8E49-4166-910C-00D3E565C348")]
public partial class Cry_OrderActiveX : UserControl,IObjectSafty
{
public Cry_OrderActiveX()
{
InitializeComponent();
} #region IObjectSafty实现
public void GetInterfacceSafyOptions(Int32 riid, out Int32 pdwSupportedOptions, out Int32 pdwEnabledOptions)
{
pdwSupportedOptions = 1;
pdwEnabledOptions = 2;
} public void SetInterfaceSafetyOptions(Int32 riid, Int32 dwOptionsSetMask, Int32 dwEnabledOptions)
{ }
#endregion #region 控件加载
private void Cry_OrderActiveX_Load(object sender, EventArgs e)
{ }
#endregion #region 日报表
private void btnDay_Click(object sender, EventArgs e)
{
UChart.DataSource = null;
DataTable dt = OrderLogic.Cry_Order_Day(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
UChart.DataSource = dt;
}
#endregion #region 月报表
private void btnMonth_Click(object sender, EventArgs e)
{
DataTable dt = OrderLogic.Cry_Order_Month(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
UChart.DataSource = dt;
}
#endregion #region 站内销量
private void btnSite_Click(object sender, EventArgs e)
{
UChart.DataSource = null;
DataTable dt = OrderLogic.Cry_Order_Site(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
UChart.DataSource = dt;
}
#endregion
}
}但打开设计器,设计器显示的是html代码了
如下面的,这到底是怎么回事啊
<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}</style></head><body><DIV class="DetailsStyle" width="100%"><table border="0" width="100%" id="table1" height="100%" cellspacing="0" cellpadding="0"><tr><td height="40" bgcolor="#FF9999" width="8%" style="letter-spacing: 0" align="center"><img border="0" src="C:\Documents and Settings\Administrator\Local Settings\Temp\675311.tmp" width="35" height="35" alt="ErrorImage" ></td><td height="40" bgcolor="#FF9999" width="91%" style="vertical-align: top; letter-spacing: 0" align="left"><b><font size="2" face="Arial" fontsize="70%">鍔犺浇璁捐鍣ㄦ椂閬囧埌涓€涓垨澶氫釜閿欒銆傝繖浜涢敊璇湪涓嬮潰鍒楀嚭銆備竴浜涢敊璇彲閫氳繃閲嶆柊鐢熸垚椤圭洰鏉ヤ慨澶嶏紝鑰屽彟涓€浜涢敊璇垯闇€瑕佹洿鏀逛唬鐮併€?/font><font size="2" face="Arial"></font></b></td></tr><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>鏈兘鍔犺浇鏂囦欢鎴栫▼搴忛泦鈥淚nfragistics.License, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb鈥濇垨瀹冪殑鏌愪竴涓緷璧栭」銆傜郴缁熸壘涓嶅埌鎸囧畾鐨勬枃浠躲€?</span><br><a href="" id="details0">闅愯棌</a><font color="#0000FF">  </font></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div20" class="StackStyleVisible" width="100%"><br> 鍦?System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)<br> 鍦?System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)<br> 鍦?System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)<br> 鍦?System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)<br> 鍦?System.Activator.CreateInstance(String assemblyName, String typeName)<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraProductInfo.LoadAllNewerProductInfo()<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseBaseAttribute.LoadProductArray()<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseBaseAttribute.get_AllProducts()<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseProvider.GetDesignTimeLicense(Type type, Object instance, Boolean allowExceptions, UltraLicenseBaseAttribute licenseAttribute)<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)<br> 鍦?System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)<br> 鍦?System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)<br> 鍦?System.ComponentModel.LicenseManager.Validate(Type type, Object instance)<br> 鍦?Infragistics.Win.UltraWinChart.UltraChart..ctor()</DIV></td></tr></table></div></body></html>
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Specter.BusinessLogic.OrderLogic;namespace Specter.ActiveXEngine.SysOrder
{
[Guid("DE2E497D-8E49-4166-910C-00D3E565C348")]
public partial class Cry_OrderActiveX : UserControl,IObjectSafty
{
public Cry_OrderActiveX()
{
InitializeComponent();
} #region IObjectSafty实现
public void GetInterfacceSafyOptions(Int32 riid, out Int32 pdwSupportedOptions, out Int32 pdwEnabledOptions)
{
pdwSupportedOptions = 1;
pdwEnabledOptions = 2;
} public void SetInterfaceSafetyOptions(Int32 riid, Int32 dwOptionsSetMask, Int32 dwEnabledOptions)
{ }
#endregion #region 控件加载
private void Cry_OrderActiveX_Load(object sender, EventArgs e)
{ }
#endregion #region 日报表
private void btnDay_Click(object sender, EventArgs e)
{
UChart.DataSource = null;
DataTable dt = OrderLogic.Cry_Order_Day(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
UChart.DataSource = dt;
}
#endregion #region 月报表
private void btnMonth_Click(object sender, EventArgs e)
{
DataTable dt = OrderLogic.Cry_Order_Month(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
UChart.DataSource = dt;
}
#endregion #region 站内销量
private void btnSite_Click(object sender, EventArgs e)
{
UChart.DataSource = null;
DataTable dt = OrderLogic.Cry_Order_Site(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
UChart.DataSource = dt;
}
#endregion
}
}但打开设计器,设计器显示的是html代码了
如下面的,这到底是怎么回事啊
<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}</style></head><body><DIV class="DetailsStyle" width="100%"><table border="0" width="100%" id="table1" height="100%" cellspacing="0" cellpadding="0"><tr><td height="40" bgcolor="#FF9999" width="8%" style="letter-spacing: 0" align="center"><img border="0" src="C:\Documents and Settings\Administrator\Local Settings\Temp\675311.tmp" width="35" height="35" alt="ErrorImage" ></td><td height="40" bgcolor="#FF9999" width="91%" style="vertical-align: top; letter-spacing: 0" align="left"><b><font size="2" face="Arial" fontsize="70%">鍔犺浇璁捐鍣ㄦ椂閬囧埌涓€涓垨澶氫釜閿欒銆傝繖浜涢敊璇湪涓嬮潰鍒楀嚭銆備竴浜涢敊璇彲閫氳繃閲嶆柊鐢熸垚椤圭洰鏉ヤ慨澶嶏紝鑰屽彟涓€浜涢敊璇垯闇€瑕佹洿鏀逛唬鐮併€?/font><font size="2" face="Arial"></font></b></td></tr><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>鏈兘鍔犺浇鏂囦欢鎴栫▼搴忛泦鈥淚nfragistics.License, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb鈥濇垨瀹冪殑鏌愪竴涓緷璧栭」銆傜郴缁熸壘涓嶅埌鎸囧畾鐨勬枃浠躲€?</span><br><a href="" id="details0">闅愯棌</a><font color="#0000FF">  </font></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div20" class="StackStyleVisible" width="100%"><br> 鍦?System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)<br> 鍦?System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)<br> 鍦?System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)<br> 鍦?System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)<br> 鍦?System.Activator.CreateInstance(String assemblyName, String typeName)<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraProductInfo.LoadAllNewerProductInfo()<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseBaseAttribute.LoadProductArray()<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseBaseAttribute.get_AllProducts()<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseProvider.GetDesignTimeLicense(Type type, Object instance, Boolean allowExceptions, UltraLicenseBaseAttribute licenseAttribute)<br> 鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)<br> 鍦?System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)<br> 鍦?System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)<br> 鍦?System.ComponentModel.LicenseManager.Validate(Type type, Object instance)<br> 鍦?Infragistics.Win.UltraWinChart.UltraChart..ctor()</DIV></td></tr></table></div></body></html>
解决方案 »
- ASP.NET为一个PDF文件添加水印,求源码,急
- 请问各位大侠,在asp.net中,如果我要做动态的连接线,要怎么写代码?是不是要用好控件还是怎么用
- 小第请教一个问题,关于类似outlook软件里面,右击邮件,弹出功能菜单,是如何实现的!!
- 关于读取的数字显示字符串的问题
- ASP.NET treeview节点鼠标移上去时背景色变化问题
- 求助:datagrid的问题
- 问一个简单的连接字符串问题,成功就给分
- 如何去掉IFrame右侧的滚动条位置处出现空白区域????急,解决了加分
- 关于数据插入的问题。
- 在文件上传中如何控制让用户只能点击‘浏览...’来选择文件?
- mysql数据库 添加汉字记录的时候 如果是生僻字 出现data too long for column错误
- 谁有ASP.NET音乐播放器?
设计 or 源?
这个还没有搞好,在这我还想问一下ultragrid控件通过数据源去绑定数据,并且设置列头为中文,就像
DataGridView控件中的DataProperName属性一样
web使用activex控件