无法从rdlc打印。 [英] Can't print from rdlc.

查看:79
本文介绍了无法从rdlc打印。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP.NET中使用ReportViewer。从开发环境来看,

工作正常。发布后,我尝试使用ReportViewer打开页面我获取错误:


报表服务器上发生内部错误。请参阅错误日志了解更多

详细信息。


我是否配置错误?我不知道在哪里找到错误

日志来查看它。

-

stullhe104

解决方案

问候,


如果您嵌入了可能导致问题根源的rdlc。如果您要嵌入

,请尝试将其更改为始终复制然后在打印例程中设置

路径。在ReportViewer控件和rdlc打印的VS2005

帮助中有很好的文档。查询

ReportViewer


Rich


***通过Developersdex发送 http://www.developersdex.com ***


您好stullhe,


除了RDLC模板文件'的复制/部署问题,Rich提到了

,我建议你检查一下Reportviewer的部署情况

首先控制目标服务器计算机。


对于VS 2005 / .NET 2.0和VS 2008 .NET 3.5,reportViewer控件是

作为附加组件(与visual studio一起安装),而不是内置.net框架系统组件的
。如果你想部署应用程序

,它在没有安装Visual B / B $ b $ studio的机器上使用Reportviewer控件。您还需要在该

计算机上安装reportviewer控件。下面的MSDN参考已经提到过这个,Visual

studio已经提供了reportviewer控件可再发行组件包

你:


#Deploying报告和ReportViewer控件
http ://msdn.microsoft.com/en-us/libr...23(VS.80).aspx

#Deploying Reports和ReportViewer Controls
http://msdn.microsoft.com/en-us /library/ms251723.aspx


以下是有关Reportviewer控件的更多信息:


#ReportViewer控件(Visual Studio)
http://msdn.microsoft.com/en -us / library / ms251671.aspx


希望这会有所帮助。


此致,


Steven Cheng


Microsoft MSDN在线支持主管

让客户满意是我们的首要任务。我们欢迎您的意见和

有关我们如何改进我们为您提供的支持的建议。请

随时让我的经理知道您对服务水平的看法

提供。您可以直接向我的经理发送反馈:
ms****@microsoft.com


========================================== ========

通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。


注意:MSDN托管新闻组支持服务是针对非紧急问题

如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx

======================================== ==========

此帖子按原样提供。没有保证,也没有赋予任何权利。

--------------------


>来自:=?Utf-8?B?SGVyYg ==?=< st ******** @ newsgroup.nospam>
主题:无法从rdlc打印。
日期:2008年7月9日星期三11:35:00 -0700


>我在ASP中使用ReportViewer。净。从开发环境来看,它可以正常工作。发布时,我尝试用
打开页面



ReportViewer I


>得到错误:

报表服务器上发生内部错误。查看
的错误日志



more


>详情。

我有错误的配置吗?我不知道在哪里找到错误
日志来查看它。

-
stullhe104


< blockquote>我是否需要将报告作为ServerReport运行?目前它是一个LocalReport

引用数据集。我不知道在哪里检查嵌入与复制



-

stullhe104

富P写道:


问候,


如果您嵌入可能是问题根源的rdlc。如果您要嵌入

,请尝试将其更改为始终复制然后在打印例程中设置

路径。在ReportViewer控件和rdlc打印的VS2005

帮助中有很好的文档。查询

ReportViewer


Rich


***通过Developersdex发送 http://www.developersdex.com ***


I''m using a ReportViewer in ASP.NET. From the development environment it
works fine. When published and I try to open the page with the ReportViewer I
get the error:

An internal error occurred on the report server. See the error log for more
details.

Do I have something configured wrong? I do not knw where to find the error
log to review it.
--
stullhe104

解决方案

Greetings,

If you are embeddng the rdlc that could be a source of your problem. If
you are embedding try changing that to "Copy Always" and then set your
path in the print routine. There is good documentation in the VS2005
help on the ReportViewer control and on printing from an rdlc. Look up
ReportViewer

Rich

*** Sent via Developersdex http://www.developersdex.com ***


Hi stullhe,

In addition to the RDLC template file''s copy/deploy issue Rich has
mentioned, I would suggest you check the deployment of the Reportviewer
control on the target server machine first.

For both VS 2005/.NET 2.0 and VS 2008 .NET 3.5, the reportViewer control is
included as an additional components(installed with visual studio), not
built-in .net framework system component. If you want to deploy application
which use Reportviewer control on a machine which doesn''t have visual
studio installed. You need to install the reportviewer control on that
machine also. The following MSDN reference has mentioned this, Visual
studio has provided the reportviewer control redistributable package for
you:

#Deploying Reports and ReportViewer Controls
http://msdn.microsoft.com/en-us/libr...23(VS.80).aspx

#Deploying Reports and ReportViewer Controls
http://msdn.microsoft.com/en-us/library/ms251723.aspx

Here are more information about Reportviewer control:

#ReportViewer Controls (Visual Studio)
http://msdn.microsoft.com/en-us/library/ms251671.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

>From: =?Utf-8?B?SGVyYg==?= <st********@newsgroup.nospam>
Subject: Can''t print from rdlc.
Date: Wed, 9 Jul 2008 11:35:00 -0700

>I''m using a ReportViewer in ASP.NET. From the development environment it
works fine. When published and I try to open the page with the

ReportViewer I

>get the error:

An internal error occurred on the report server. See the error log for

more

>details.

Do I have something configured wrong? I do not knw where to find the error
log to review it.
--
stullhe104


Do I need to run my report as a ServerReport? Currently it is a LocalReport
referring to a dataset. I''m not sure where to check the embedding vs. "Copy
To"
--
stullhe104
"Rich P" wrote:

Greetings,

If you are embeddng the rdlc that could be a source of your problem. If
you are embedding try changing that to "Copy Always" and then set your
path in the print routine. There is good documentation in the VS2005
help on the ReportViewer control and on printing from an rdlc. Look up
ReportViewer

Rich

*** Sent via Developersdex http://www.developersdex.com ***


这篇关于无法从rdlc打印。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆