|
阅读:1329回复:0
[求助]Mapxtreme 的Unable to access dataset求助
<P>我按照书上的一个例子写的代码 ,在执行的时候在最后一句 MapInfo.Data.Table table = MapInfo.Engine.Session.Current.Catalog.CreateTable(ti);抛出异常Unable to create table.: Unable to access dataset 这应该怎么解决啊,我的环境是VS05+Mapxtreme05</P>
<P> TableInfoNative ti = new TableInfoNative("NewTable");<BR> ti.TablePath = "C:\\Program Files\\MapInfo\\MapXtreme\\jc.TAB";<BR> ti.Columns.Add(ColumnFactory.CreateIndexedStringColumn("Capital",30));<BR> ti.Columns.Add(ColumnFactory.CreateStringColumn("Country",30));<BR> ti.Columns.Add(ColumnFactory.CreateDoubleColumn("Pop_Grw_Rt"));<BR> ti.Columns.Add(ColumnFactory.CreateStyleColumn());<BR> CoordSys Rob = MapInfo.Engine.Session.Current.CoordSysFactory.CreateFromPrjString("12,6,7,0");<BR> ti.Columns.Add(ColumnFactory.CreateFeatureGeometryColumn(Rob));<BR> MapInfo.Data.Table table = MapInfo.Engine.Session.Current.Catalog.CreateTable(ti);</P> |
|
|