地图中...图层的空间数据...无效。指定数据类型为 SqlGeometry 或 SqlGeography 的空间数据。报告生成器3.0
我正在 VS 2010 中以编程方式编辑地图报告的数据集,方法是更改转换为 xml 的基线报告中的数据集查询,然后显示在报告生成器中转换为 .rdl 的新报告。当报表生成器首次启动并处于设计模式时,地图显示
“共享数据源...不存在或您没有足够的权限。有关详细信息,请联系您的报表服务器管理员。没有可用的空间数据。地图显示包含示例空间数据。”
但是,如果我在视口内部单击,地图将在设计模式下按指定显示报告数据。此时,当我尝试运行该报告时,出现上述错误。我不明白如果在设计模式下显示空间数据怎么会无效。
任何帮助将不胜感激。
I am editing the data set for a map report programmatically in VS 2010 by changing the dataset queries in a baseline report converted to xml, then displaying the new report, converted to .rdl in Report Builder. When Report Builder is first launched and is in design mode, the map says
"The shared data source... does not exist or you do not have sufficient permissions. for more information contact your report server administrator. No spatial data available. The map display contains sample spatial data."
However if I click inside the viewport, the map displays report data as specified, in design mode. At this point when I try to run the report, I get the above error. I do not understand how the spatial data can be invalid if it is being displayed in design mode.
Any help would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚解决了这个问题,我使用的基线报告不包含数据库中的所有坐标,因此当我尝试运行范围比基线更大的报告时,某些坐标的 VectorData 不存在。
I just solved it, the baseline report I was using didn't include all coordinates in my database, so when I tried to run a report that had a larger scope than my baseline, the VectorData didn't exist for some of the coordinates.