报告服务问题呈现 RTF

发布于 2024-07-21 10:18:02 字数 2896 浏览 8 评论 0原文

我正在使用 VS.NET 2005SQL Server 2005。 我的开发计算机运行的是Windows XP SP2。 SQL Server 2005 数据库和报告服务在Windows 2003 Server 上运行。

我的业务需求是开发和部署一个报告,该报告采用存储在数据库(datatype = TEXT)中的富文本(RTF),并在运行时使用自定义程序集(源代码可以在这里找到 http:// blogs.digineer.com/blogs/jasons/archive/2006/10/03/520.aspx)。 我可以使用 ReportManager Web 界面和 Render 方法在本地(即开发人员)计算机上生成并查看包含 RTF 的动态图像。 当我将其部署到我们的测试服务器时,我最终得到了一个损坏的链接图像。

回顾一下,我采取了以下步骤。

使用 VS.NET 2005 创建自定义程序集,将 RTF 转换为位图图像。 定制装配有一个响亮的名字。

在本地开发人员计算机上

  1. 将自定义程序集复制到 C:\Program 文件\Microsoft Visual Studio 8\Common7\IDE**私有程序集**。
  2. 修改 C:\Program Files\Microsoft 视觉工作室 8\Common7\IDE\PrivateAssemblies**RSReportDesigner.config** 包含一个CodeGroup,它授予 FullTrust 基于自定义程序集 关于StrongNameMembership注意: ReadMe.txt 没有提到添加 进入该文件)。
  3. 修改 C:\Program Files\Microsoft 视觉工作室 8\Common7\IDE\PrivateAssemblies**RSPreviewPolicy.config** 包含一个CodeGroup,它授予 FullTrust 基于自定义程序集 关于 StrongNameMembership(注意: ReadMe.txt 没有提到添加 进入该文件)。

使用 VS.NET 2005 修改报告如下

  1. 添加了对自定义程序集的引用 和系统绘图。
  2. 添加了图像控制 type=数据库, MimeType=图像/bmp, 值 = 调用自定义程序集 方法; 方法传递的值是 包含 RTF 的数据库字段。
  3. 已部署报告。
  4. 通过以下方式成功查看了报告 HTML 和通过 Render 方法 使用 EXCEL 作为输出的 WebService 格式。 图像的 HTML

在本地开发人员计算机和服务器上

  1. 将自定义程序集复制到 C:\Program 文件\Microsoft SQL 服务器\MSSQL.3\报告 Services\ReportServer\bin
  2. 修改 C:\Program Files\Microsoft SQL Server\MSSQL.3\报告 服务\ReportServer**rssrvpolicy.config** 包括一个 CodeGroup 授予 FullTrust 基于自定义组件 关于StrongNameMembership注意: 源代码表示权限 应根据 UrlMembership)。
  3. 已部署报告。
  4. 查看报告均失败 通过 HTML 和通过 Render 方法 使用 EXCEL 作为输出的 WebService 格式。 图像的 HTML

最初,在导出到 Excel 时,我收到了类似“数据丢失”的错误消息,但这些似乎已通过在 .config 文件中授予我们在自述文件中未提及的权限来解决。TXT。 我已经没有什么可以尝试的了,我已经束手无策了。 我确信该解决方案与权限有关,因为这适用于我的计算机,但不适用于服务器。

预先感谢您的任何想法或建议。

问候,

比尔

I'm using VS.NET 2005 and SQL Server 2005. My development computer is running Windows XP SP2. SQL Server 2005 database and reporting services are running on Windows 2003 Server.

My business requirement is to develop and deploy a report which takes rich text (RTF) stored in the database (datatype = TEXT) and converts it to an image at runtime using a custom assembly (source can be found here http://blogs.digineer.com/blogs/jasons/archive/2006/10/03/520.aspx). I am able to generate and view the dynamic image containing the RTF on my local (i.e., developer) computer both using the ReportManager web interface and using the Render method. When I deploy this to our test server, I end up with a broken link image.

To recap, I have taken the following steps.

Created custom assembly using VS.NET 2005 which converts RTF to bitmap image. Custom assembly has a strong name.

On local developer machine

  1. Copied custom assembly to C:\Program
    Files\Microsoft Visual Studio
    8\Common7\IDE**PrivateAssemblies**.
  2. Modified C:\Program Files\Microsoft
    Visual Studio
    8\Common7\IDE\PrivateAssemblies**RSReportDesigner.config**
    to include a CodeGroup which grants
    FullTrust
    to custom assembly based
    on StrongNameMembership (NOTE:
    ReadMe.txt doesn't mention adding an
    entry to this file).
  3. Modified C:\Program Files\Microsoft
    Visual Studio
    8\Common7\IDE\PrivateAssemblies**RSPreviewPolicy.config**
    to include a CodeGroup which grants
    FullTrust
    to custom assembly based
    on StrongNameMembership (NOTE:
    ReadMe.txt doesn't mention adding an
    entry to this file).

Modified report using VS.NET 2005 as follows

  1. Added reference to custom assembly
    and System.Drawing.
  2. Added image control with
    type=Database, MimeType=image/bmp,
    Value = call to custom assembly
    method
    ; method is passed value of
    database field which contains RTF.
  3. Deployed report.
  4. Viewed report successfully both via
    HTML and via Render method of
    WebService using EXCEL as output
    format. HTML for image

On local developer machine and server

  1. Copied custom assembly to C:\Program
    Files\Microsoft SQL
    Server\MSSQL.3\Reporting
    Services\ReportServer\bin
  2. Modified C:\Program Files\Microsoft
    SQL Server\MSSQL.3\Reporting
    Services\ReportServer**rssrvpolicy.config**
    to include a CodeGroup which grants
    FullTrust to custom assembly based
    on StrongNameMembership (NOTE:
    source code indicates permissions
    should be granted based on
    UrlMembership).
  3. Deployed report.
  4. Viewed report unsuccessfully both
    via HTML and via Render method of
    WebService using EXCEL as output
    format. HTML for image

Initially, I got error messages when exporting to Excel along the lines of ,"data is missing" but these appear to have been resolved by granting permissions in .config files which we not mentioned in ReadMe.txt. I've have run out of things to try and am at my wits end. I am convinced the solution has something to do with permissions since this works on my computer but not on the server.

Thanks in advance for any thoughts or suggestions.

Regards,

Bill

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼泪也成诗 2024-07-28 10:18:02

您是否授予您的程序集必要的权限来访问测试服务器上的数据库? (看起来您确实这样做了。)

如果是这样,请检查您是否确实在测试服务器上创建了映像。 如果没有,那就是写权限问题。 如果正在创建但无法查看,则属于读取权限问题。

Did you grant your assembly the necessary permissions to access the DB on the test server? (Looks like you did.)

If so, then check to see whether you're actually creating the image on the test server. If not, then it's a write permission issue. If it's being created but can't be viewed, then it's a read permission issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文