简体   繁体   English

共享点的SSRS,共享点列表URL中报告中的图像?

[英]SSRS for Sharepoint, Images in a report from a Sharepoint List URL?

Greetings Sabios, 问候Sabios,

I have several reports I run successfully where the data comes from a Sharepoint list in the form of an XML dataset. 我有几份成功运行的报告,其中数据来自XML数据集形式的Sharepoint列表。 I am however having trouble with one. 但是我遇到麻烦了。 I have a report that pulls an image file onto the main body of the report. 我有一个报告,将图像文件拉到报告的主体上。 This data too comes from a Sharepoint list in the form of an XML dataset which sends me the URL to the jpeg or bmp or gif... whatever the case may be. 这些数据也来自XML数据集形式的Sharepoint列表,该列表将URL发送给jpeg或bmp或gif ...无论如何。

  1. I can successfully pull this off in my own Visual Studio IDE. 我可以在自己的Visual Studio IDE中成功实现此目的。
  2. My Local Report Server will render it as well 我的本地报表服务器也将呈现它
  3. It won't run on my Sharepoint Report Server (My MOSS runs through https while my Shartpoint Report Server is http might this matter?) 它不能在我的Sharepoint Report Server上运行(我的MOSS通过Shartpoint Report Server为http时通过https运行,这可能有问题吗?)

When I upload it to Sharepoint and run it through the Sharepoint Report Server, I get back EVERYTHING in the report Header and Footer (dataset text and embedded Images) but just a big RED X where the Main Image should be. 当我将其上传到Sharepoint并通过Sharepoint Report Server运行它时,我在报告的页眉和页脚(数据集文本和嵌入式图像)中得到了所有内容,但只有大RED X(应在主图像中放置)。 I have done everything the boards say: 我已经做了董事会所说的一切:

A. I made sure the Unattended Execution Account is running on the Reports Server B. I have insured the URL comes back in clean format (else the images wouldn't render locally either and they do) A.我确保无人参与执行帐户正在Reports Server B上运行。我确保URL以干净格式返回(否则图像也不会在本地呈现,而是可以)

The report logs throw this exception: 报告日志抛出此异常:

e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ContainerTypeNotSupportedException: The target location you specified is not supported by the report server. e错误:引发Microsoft.ReportingServices.Diagnostics.Utilities.ContainerTypeNotSupportedException:报表服务器不支持您指定的目标位置。 A report definition (.rdl), report model (.smdl), resource, or shared data source (.rsds) file must be located within a library or a folder within it., ; 报表定义(.rdl),报表模型(.smdl),资源或共享数据源(.rsds)文件必须位于库中或其中的文件夹中。 Info: Microsoft.ReportingServices.Diagnostics.Utilities.ContainerTypeNotSupportedException: The target location you specified is not supported by the report server. 信息:Microsoft.ReportingServices.Diagnostics.Utilities.ContainerTypeNotSupportedException:报表服务器不支持您指定的目标位置。 A report definition (.rdl), report model (.smdl), resource, or shared data source (.rsds) file must be located within a library or a folder within it. 报表定义(.rdl),报表模型(.smdl),资源或共享数据源(.rsds)文件必须位于库或其中的文件夹中。

Any takers? 有没有人? Even my Sharepoint Administrator can't help me:) 甚至我的Sharepoint管理员也帮不了我:)

James 詹姆士

Don't use the URL, just add the column to your report: 不要使用URL,只需将列添加到报告中即可:

select leafname, [content]
from alldocstreams s
 inner join alldocs d on d.id = s.id
where

OK, I found the fix for THIS situation.... 好的,我找到了解决这种情况的方法。

Display External Images SSRS-MOSS 显示外部图像SSRS-MOSS

You have an Image in Sharepoint that you want to display as an external image in a report through SQL Server reporting Services in Sharepoint Integration Mode. 您要在Sharepoint中有一个图像,该图像要通过Sharepoint集成模式下的SQL Server Reporting Services在报表中显示为外部图像。 Simple you think... slow down. 简单的你以为...慢下来。 What your Visual Studio and Local Report Server display does not necessarily sit well with Microsoft Office Sharepoint Server. Visual Studio和本地报表服务器显示的内容不一定与Microsoft Office Sharepoint Server相符。

Do the following for this is what THEY (the gurus of the web) will tell you for the most part: 为此,请执行以下操作 ,这是他们(网络专家)将在大多数情况下告诉您的信息:

A. Try to deceive MOSS, ignore dummy parameters =Fields!DocumentPath.Value &"&dummy=1" A.尝试欺骗MOSS,忽略伪参数= Fields!DocumentPath.Value&“&dummy = 1”

B. Change configurations of the Custom Data Source B.更改自定义数据源的配置

C. Change Report Server to HTTPS also C.还将报表服务器也更改为HTTPS

D. Configure your List directory to run with anonymous user D.配置您的列表目录以与匿名用户一起运行

D. Set the UseSessionCookies to 'False' in the ConfigurationInfo table D.在ConfigurationInfo表中将UseSessionCookies设置为“ False”

E. The unattended execution account must be initialized in the Report Server E.无人参与的执行帐户必须在报表服务器中初始化

However in addition to the the the above for now. 但是,除了上述内容之外。 If you want to render the following type of report, here are the hoops you leap through to get to the end result: 如果您要呈现以下类型的报告,则可以通过以下步骤获得最终结果:

Ask Yourself: 问你自己:

  1. You want to create a List in Sharepoint for the data pertaining to your report and bring that data into the report via an XML extension. 您想在Sharepoint中为与您的报表有关的数据创建一个列表,然后通过XML扩展将该数据带入报表中。 GOOD

  2. You want the Sharepoint List to include the URL of the Image you wish to display. 您希望共享点列表包含要显示的图像的URL。 GOOD

  3. You decide to add the image as an attachment to the List and use THAT URL as the Images Location. 您决定将图像添加为列表的附件,并使用该URL作为图像位置。 BAD! 坏! Danger Will Robinson!!!! 危险威尔·鲁滨逊!!!

This works fine in the Visual Studio Environment and on your Local Reports Server In Sharepoint Integrated Reports Servers, for some reason, using the URL to the same List's ATTACHMENT is Unacceptable! 由于某些原因,在Visual Studio环境中以及在SharePoint集成报表服务器中的本地报表服务器上,此方法都可以正常使用,使用URL指向同一列表的附件是不可接受的! You must upload the Image somewhere else on the server and access it that way. 您必须将映像上载到服务器上的其他位置,然后以这种方式进行访问。

I uploaded my Images into a Shared Documents Folder and placed the URL of THAT location in the URL field of my Reports List. 我将图像上传到“共享文档”文件夹中,并将该位置的URL放置在“报告列表”的URL字段中。 When I went back to run the Report through the Sharepoint Server: It worked! 当我回过头通过Sharepoint Server运行报表时:它起作用了! The Images came in from the Shared Document Location when that URL was placed in the URL field of the List. 当将该URL放置在列表的URL字段中时,图像从共享文档位置进入。

I was trying to do this - embedding the image wasn't working. 我正在尝试执行此操作-嵌入图像无效。 So I put the image in my report library and put an external link to the image in my report. 因此,我将图像放在报表库中,并将指向该图像的外部链接放在报表中。 I am running SSRS in SharePoint Integrated mode, serving up over https. 我在SharePoint集成模式下运行SSRS,通过https服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM