VS 2012或更高版本中的CellSetGrid实现 [英] CellSetGrid Implementation in VS 2012 or later
问题描述
大家好,
我已经下载了CellSetGrid( http://www.sqlserverdatamining.com/cellsetgrid/cellsetgridintro.htm [ ^ ])源代码并尝试使用我的多维数据集详细信息实现网格。我试图在VS 2013中使用相同的。当我运行时,我收到错误,因为sql server analysis services 2005或更高版本需要,即使我已经安装了最新版本的SSAS。请帮我解决这个问题。在此先感谢。
最基本的问候
Sibeesh Venu
www.sibeeshpassion.com
大家好,
我自己解决了这个问题。在这里,我将与您分享您可能需要遵循的步骤。
1.从下载的文件中找出CellSetGrid2.cs文件
2.找出行if(Convert.ToInt32(this.oConnection.ServerVersion.Substring(0,1))< 9)
3.注释if条件中的代码。
4.所以你的情况可能如下所示。
// 检查服务器版本 - Yukon及更高版本支持
if (Convert.ToInt32( this .oConnection。 ServerVersion.Substring( 0 , 1 ))< 9 )
{
// this.oCellSetState.IsAllOK = false;
// this.oCellSetState.ExceptionMessage =需要SQL Server Analysis Services 2005或更高版本。;
// this.oConnection.Close();
// return;
}
通过这种方式,它不会根据版本而中断。
5.现在构建你的项目并在你消费的项目中使用最新的dll。
Hi All,
I have downloaded the CellSetGrid (http://www.sqlserverdatamining.com/cellsetgrid/cellsetgridintro.htm[^] )source code and tried to implement the grid with my cube details. I am trying to use the same in VS 2013. When I run I am getting error as "sql server analysis services 2005 or later required " even if I have already Installed latest version of SSAS. Please help me to resolve this. Thanks in advance.
Kindest Regards
Sibeesh Venu
www.sibeeshpassion.com
Hi All,
I have solved this myself. Here I will share you the steps you may need to follow.
1. Find out the CellSetGrid2.cs file from the downloaded files
2. Find out the line " if (Convert.ToInt32(this.oConnection.ServerVersion.Substring(0, 1)) < 9)"
3. Comment out the codes inside the if condition.
4. So your condition may looks like below.
// Check server version - Yukon and later supported if (Convert.ToInt32(this.oConnection.ServerVersion.Substring(0, 1)) < 9) { //this.oCellSetState.IsAllOK = false; //this.oCellSetState.ExceptionMessage = "SQL Server Analysis Services 2005 or later required."; //this.oConnection.Close(); //return; }
In this way, it won't break according to the version.
5.Now build your project and use the latest dll in your consumed project.
这篇关于VS 2012或更高版本中的CellSetGrid实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!