VS 关于无法打开项目文件,此安装不支持该项目类型的问题
摘要:用VS打开后有时会出现类似: 无法打开项目文件,此安装不支持该项目类型 的错误,这个错误一般都是由于用低版本VS打开高版本项目文件造成的 其中包括: 1、用VS2003 打开包括VS2005以上版本项目文件(如VS2005、VS2008) 2、用VS2005打开包括VS2005+Sp1及以上项目文件(如VS2005+sp1、VS2008) 解决办法是进行相关VS的版本升级(包括打VS2005的Sp1补订包) 相关VS软件可以到[Asp.net常用工具下载]板块去下载!Microsoft Visual Studio各版本下载Microsoft® Visual Studio®
阅读全文
gridview 添加进度条
摘要:1.ChartHandler.ashx<%@WebHandlerLanguage="C#"Class="ChartHandlerTest"%>usingSystem;usingSystem.Web;usingSystem.Drawing;usingSystem.Drawing.Drawing2D;usingSystem.Drawing.Imaging;publicclassChartHandlerTest:IHttpHandler{publicvoidProcessRequest(HttpContextcontext){decimalouni
阅读全文
gridview自动换页
摘要:每隔5秒自动换页(适用于数据量小的表)<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="test.aspx.cs"Inherits="test"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns
阅读全文
failed due to the following error: 80070005 拒绝访问
摘要:导入EXCEL后批量更新数据的程序错误提示:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).at _Default.GetExcelData(String FileName, Int32 str) 解决方法:需要配置好了相应的Excel的DCOM
阅读全文
reporting services 订阅 windows 文件共享
摘要:指定唯一的文件名称:在文件名中添加@timestamp变量,就永远不会被覆盖
阅读全文
Press C#使用指定打印机打印Word,Excel等Office文件和打印PDF文件的代码 (转)
摘要:http://www.cnblogs.com/xiachufeng/archive/2010/07/31/1789136.html打印,是做开发的人的经久不变的话题。今天,用实例代码,说明.NET是如何打印WORD、EXCEL等OFFICE文件,以及PDF文件的。采用指定的打印机打印OFFICE文件此方法又分为 “显示相应的程序窗口” 和 “不显示相应的程序窗口”两种方式。(1) 显示WORD、EXCEL等程序窗口采用操作系统自身的自动识别模式的打印,此方法实际适用于N多种文件,并不限于WORD,EXCEL,PDF之类的,但是这种方法,有一个缺陷,就是:对于某些类型的文档,如WORD,EXCE
阅读全文
C# 打印 word pdf PrintOut方法
摘要://要打印的文件路径objectwordFile=lstDoc.SelectedValue.ToString();//@"c:\test.doc";objectoMissing=Missing.Value;//自定义object类型的布尔值objectoTrue=true;objectoFalse=false;objectCopies=nudCopies.Value;//打印份数objectwdPrintFrom=txtPage1.Text;//打印的起始页码objectwdPrintTo=txtPage2.Text;//打印的结束页码objectdoNotSaveChan
阅读全文
C# 线程
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Threading;namespaceWindowsFormsApplication2{publicpartialclassForm2:Form{//Testts=newTest(lbl);publicForm2(){InitializeC
阅读全文
C# 多线程控制控件实例(例程简单,注释详细)
摘要:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Threading;namespaceWindowsFormsApplication2{//定义委托publicdelegatevoidListBoxDelegate();publicpartialclassForm2:
阅读全文
JS+调用word打印功能实现在Webfrom客户端
摘要:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><!DOCTYPEhtml><html><headrunat="server"><title>调用Word打印机打印</title
阅读全文
winform 打印
摘要:1 新建项目(窗体)2 在窗体上添加printDocument 控件 添加 Button textBox 控件 usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsFormsApplication1{publicpartialclassForm1:Form{publicForm1()
阅读全文
VB.NET与C#代码互相转化在线工具
摘要:C#代码转化成VB.NET网址:http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx VB.NET代码转化成C#网址:http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspxhttp://www.developerfusion.com/tools/convert/vb-to-csharp/http://bbs.51aspx.com/showtopic-4631.html
阅读全文
System.Exception: 试图执行 CLR 主机禁止的操作
摘要:消息 6522,级别 16,状态 1,过程 InsertCurrency_String,第 0 行在执行用户定义例程或聚合 "InsertCurrency_String" 期间出现 .NET Framework 错误: System.Exception: 试图执行 CLR 主机禁止的操作。System.Exception: 在 SqlServerCLRCallNet.CLRFunction.CallSAPFunUpdateDataVB(String strFunName, ListDictionary strArgs, ListDictionary strTableArgs
阅读全文
执行用户定义例程或聚合 "" 期间出现 .NET Framework 错误:
摘要:消息 6522,级别 16,状态 1,过程 InsertCurrency_String,第 0 行在执行用户定义例程或聚合 "InsertCurrency_String" 期间出现 .NET Framework 错误: System.NullReferenceException: 未将对象引用设置到对象的实例。System.NullReferenceException: 在 SqlServerCLRCallNet.GetConfigApp..ctor() 在 SqlServerCLRCallNet.CLRFunction.CallSAPFunUpdateDataVB(Str
阅读全文
SQL Server CLR 调用DLL T-SQL 和 CLR 類型不符
摘要:一、VS2005创建项目SqlServerCLRCallNet,新建CLRFunction.csView Code usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingMicrosoft.SqlServer.Server;usingSystem.Data.SqlClient;usingSystem.Data.SqlTypes;namespaceSqlServerCLRCallNet{publicclassCLRFunction{[Microsoft.SqlServer.Server.SqlProcedure()]p
阅读全文
CREATE ASSEMBLY 失败 safe 程序集中不允许存储到静态字段
摘要:提示错误:由于 safe 程序集 'SqlServerCLRCallNet' 中 'SqlServerCLRCallNet.TEST' 类型的方法 'CallSAPFunUpdateDataVB' 将存储到静态字段,CREATE ASSEMBLY 失败。在 safe 程序集中不允许存储到静态字段过程代码:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingVBLib;namespaceSqlServerCLRCallNet{publicclassT
阅读全文
VS2010下载
摘要:Microsoft Visual Studio 2010 Service Pack 1(exe)http://www.microsoft.com/zh-cn/download/details.aspx?id=23691Microsoft Visual Studio 2010 旗舰版试用 - ISOhttp://www.microsoft.com/zh-cn/download/details.aspx?id=12187去官网下旗舰版试用版的ISO文件,然后:方法一:在控制面版的在卸载向导中输入序列号YCFHQ-9DWCY-DKV88-T2TMH-G7BHP,我看过了,原来异次元提供的版本就是用的
阅读全文
编译器错误信息: CS0030 无法将类型“ASP.login_aspx”转换为“System.Web.UI.WebControls.Login”
摘要:编译器错误信息: CS0030: 无法将类型“ASP.login_aspx”转换为“System.Web.UI.WebControls.Login”原因:在 .NET Framework 2.0 版中新增Login类.而我们又增加Login.aspx时莫名地冲突了。这个问题也不给提示,让人分析起来好困难。<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>中Inherits=&
阅读全文
设置图片在网页中随机飘移
摘要:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/&g
阅读全文
检索 COM 类工厂中 CLSID 为 {00024500-0000-0000-C000-000000000046} 的组件时失 败,原因是出现以下错误: 80080005。 8000401a。
摘要:解决办法:在服务器中,运行dcomcnfg打开组件服务, 依次展开"组件服务"->"计算机"->"我的电脑"->"DCOM配置" 找到"Microsoft Excel应用程序"或"Microsoft Word应用程序", 右键打开属性对话框,点击"标识"选项卡,选择"启动用户"点击"安全"选项卡, 依次把"启动和激活权限","访问权限","配置权限&
阅读全文