阅读:1876回复:0
[讨论]关于c#与mo开发中的legend控件
<P>本人使用c#+mo,在使用legend控件时,老是出问题。</P>
<P>按照原例代码:</P> <P> bool flag;<br> flag = true ;<br> short refShort = 0;<br> object map = (object)axMap1() ;<br> this.axlegend1.setMapSource( ref map);<br> this.axlegend1.LoadLegend(ref flag);// <br> axlegend1.set_Active(ref refShort, true);<br> this.axlegend1.ShowAllLegend();<br> this.axlegend1.Capture = true ;</P> <P>使用异常,好像是450错误代码。</P> <P>然后有人建议把object map = (object)axMap1() ;改为object map = (object)axMap1.<FONT color=#f76809>GetOcx();</FONT></P> <P>可以运行,有些功能可以显示。但是有些功能不能使用。如改变点线面属性颜色就不可用。</P> <P>后,看别人写关于c#mo开发,他们大都装上了sdk,我没安装成功,难道是这出了问题,</P> <P>再,有人说,legend对.net支持不够,别指望它了!</P> <P>请熟悉c#与mo的给解释一下。在此谢谢了!!!1<br></P> [此贴子已经被作者于2007-10-18 15:11:32编辑过]
|
|