SsrsMsbuildTasks - 使用 AddResource 任务将图像文件添加到 ssrs 报告部署
几年来我一直在使用优秀的 ssrsmsbuildtasks 来自动化 ssrs 报告/文件夹/数据源部署。竖起大拇指。
在当前的工作中,他们有“松散”的图像文件,需要部署到报告文件夹中。看起来 AddResource 任务应该执行此操作,但我收到以下错误:
报错UploadResource:方法或操作不正确 已实施。
我已经发布到 codeplex 项目(不是很活跃)此处并直接发布到 Steve Wright 的博客< a href="http://zogamorph.blogspot.com/2006/12/delpoying-reporting-services-reports.html" rel="nofollow">这里,但我对延迟满足感没什么感觉。
我正在使用以下 msbuild 脚本尝试上传文件:
<Target Name="AddResources" DependsOnTargets="GetServerUrl">
<AddResource ReportServerURL="$(TargetServerUrl)" Folder="$(TargetReportFolder)" Files="c:\temp\CHSLogo.gif" />
</Target>
我查看了源,AddResource 任务正在 ReportService2010.asmx API 上调用 CreateCatalogItem (ItemType "Resource")。我对 ssrs api 的了解不够,不知道这是否是我正在寻找的。
即使您没有得到答案...我希望提高对 ssrsmsbuildtasks 的认识,因为它们是一个很棒的工具自动化报告部署的方法!
/jhd
I've been using the excellent ssrsmsbuildtasks for a couple years to automate ssrs report/folder/datasource deployment. Thumbs up.
On the current gig they have 'loose' image files that need to be deployed to the reports folder. Looks like the AddResource task should do this but I get the following error:
Reporting error UploadResource: The method or operation is not
implemented.
I've posted to the codeplex project (not very active) here and directly to Steve Wright's blog here, but I have little sense of delayed gratification.
I'm using the following msbuild script to try and upload the file:
<Target Name="AddResources" DependsOnTargets="GetServerUrl">
<AddResource ReportServerURL="$(TargetServerUrl)" Folder="$(TargetReportFolder)" Files="c:\temp\CHSLogo.gif" />
</Target>
I looked at the sources and AddResource task is calling CreateCatalogItem (ItemType "Resource") on the ReportService2010.asmx API. I don't know enough about the ssrs api to know if this is what I'm looking for.
Even if you don't get an answer... I hope to raise awareness regarding ssrsmsbuildtasks as they are a great way to automate report deployment!
/jhd
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
作者在 AddResource 中出现了意外的 NotImplementedException。他于 2011 年 7 月 18 日更正并发布了新版本。我已经下载、测试、验证。效果很好。有关详细信息,请参阅 codeplex 上的讨论帖。
同样,如果您希望自动化 SSRS 报告部署,您确实应该看看 ssrsmsbuildtasks。我已经使用它们好几年了,您很快就可以部署并运行报告。很好的例子,显然也有很好的支持。
好东西。
Author had an unintended NotImplementedException in AddResource. He corrected and published a new build 7/18/2011. I have downloaded, tested, verified. Works great. See discussion thread on codeplex for details.
Again, if are looking to automate SSRS report deployment you should really have a look at ssrsmsbuildtasks. I've been using them for several years and you have have your report deployment up and running in no time. Good examples and obviously good support.
Good stuff.