初学winform的时候,一直以为winform中的combox只能添加简单的仅有text的item,而不象aspx中的listitem那样即有text,又有value,结果很快发现自己错了,以下是一个示例:先声明一个类 public class ClsItemObject { public stri...【阅读全文】
最近在客户机器上出现了无法导出报表的问题,错误提示为: System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM ...【阅读全文】
using System; using System.Collections.Generic;//using System.Linq;using System.Text;using System.Diagnostics;using System.Runtime.InteropServices;using System.Threading;namespace testCrystalReports...【阅读全文】