我需要页码出现在报告的pdf导出中.我正在使用reportviewer 9.任何人都知道如何做到这一点?
谢谢,
艾萨克
我在Visual Studio 2008上创建了我的项目,以及它上面的RDLC文件.但现在,当我在Visual Studio 2010上打开解决方案并想要打开RDLC文件时,它会向我显示警告.
那有点好笑.该报告是在VS2008上创建的,VS2010要求转换为2008格式.也许在我的VS2008安装中出现了一个问题,即使用一些古老的格式创建了RDLC文件(2005 ??!)
问题是,当您使用"确定"按钮确认时,执行一些设计调整并运行应用程序,它会在"主报表"上引发错误:
ex.InnerException
{"The definition of the report 'Main Report' is invalid."}
[Microsoft.Reporting.DefinitionInvalidException]: {"The definition of the report 'Main Report' is invalid."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: {"The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' which cannot be upgraded."}
Message: "The definition of the report 'Main Report' is invalid."
Source: "Microsoft.ReportViewer.Common"
StackTrace: " at Microsoft.Reporting.ReportCompiler.CompileReport(CatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ReportSnapshotBase& snapshot)\r\n at Microsoft.Reporting.StandalonePreviewStore.StoredReport.CompileReport()\r\n at Microsoft.Reporting.StandalonePreviewStore.StoredReport.get_Snapshot()\r\n …
Run Code Online (Sandbox Code Playgroud) 我在本地计算机上使用reportViewer部署了一个报告.这是一个很宽的报告,因此需要在报告底部有一个水平滚动条,但垂直方向很好.这在FF中很好,但IE也使用垂直滚动条呈现它,无论我做什么我都无法摆脱它!这是IE的问题吗?我可以不只是有一个水平滚动条,或者即使垂直滚动条几乎没有任何东西,IE仍然坚持两者兼而有之?
谢谢
我真的不知道该怎么做。我创建了一个通用类来为我的应用程序打开报告。报告包含在另一个未作为嵌入式资源引用的 DLL 中。
如果我引用 DLL,我可以这样做:
Viewer.LocalReport.ReportEmbeddedResource = "SomeLibrary.ReportName.rdlc";
但是,由于我没有引用 DLL,因此我认为我必须通过反射获取报告。这就是我被困的地方。我真的不知道该怎么做。
我正在使用 C# winform reportviewer 2010。
我使用 SetDisplayMode() 将查看报告的默认选项更改为打印布局(整页)。然而,由于整页是打印布局的默认缩放选项,即使我在设计器中将 ZoomMode 设置为 PageWidth,当报表加载时,它也会重置为整页。是否可以在设置 displayMode 后以编程方式将 ZoomMode 设置为页面宽度?
谢谢
有没有什么办法caculate非零的平均行仅适用于微软报表查看器的RDLC数据在表中的列?
即0 0 0 5 5 = 5而不是2
我尝试使用Count(fields.n.value> 0)来获取非零行的计数,但它返回了所有行的计数.
谢谢!
Eric-
我有一个我建立的网站,适用于IE8/IE9,Chrome和FireFox中的每个人.但是,现在我的客户端要求在IE7中工作,因为机器仍然有IE7.我无法弄清楚ReportViewer控件有什么问题.任何帮助,将不胜感激.
问题是我的报告超出了设定的高度和宽度; 它不会留在我使用jQuery包裹它的DIV中
jQuery代码
$(document).ready(function () {
var htmlwidth = $('.main').width() - 20;
var htmlheight = $(document).height() - $('.header').height() - 45;
$('#<%= ReportViewer1.ClientID %>').wrap('<div style="overflow:auto;" />');
$('#<%= ReportViewer1.ClientID %>').parent().css(height, htmlheight);
$('#<%= ReportViewer1.ClientID %>').parent().css('width', htmlwidth);
$('#<%= ReportViewer1.ClientID %>').css('width', htmlwidth);
$('#<%= ReportViewer1.ClientID %>').css(height, htmlheight);
$('#<%= ReportViewer1.ClientID %>').parent().css('border', 'solid 1px Black');
});
Run Code Online (Sandbox Code Playgroud)
内容
<asp:ScriptManager ID="scManager" runat="server"></asp:ScriptManager>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="100%" Width="100%"
SizeToReportContent="true" ZoomMode="Percent" AsyncRendering="false" >
</rsweb:ReportViewer>
Run Code Online (Sandbox Code Playgroud)
示例生成块{content + jQuery Code}
<div style="width:500px; overflow:auto; border:solid 1px Black;height:400px;">
<asp:ScriptManager ID="scManager" runat="server"></asp:ScriptManager>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="400px" …
Run Code Online (Sandbox Code Playgroud) 我已经到处寻找解决这个问题的方法,但还没找到一个对我有用的方法.我在托管服务器上设置了报告服务器(2008 R2).我使用报表生成器从头创建了一个报表,在使用其URL登录到报表服务器时对其进行了测试,并成功生成了报表.
当我尝试从MVC应用程序查看报告时,只有报告工具栏呈现(显示导出,打印,页面和视图报告按钮).它显示它是"正在加载",并且在它完成之后它只是一个空白报告,但是它在工具栏上显示了正确的参数,如果我更改了代码中的参数名称,则会返回错误,指出参数没有存在; 所以我知道地址user/pw信息是否正确.
页面的代码和标记
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="Comp.Proj.Core.Model"%>
<%@ Import Namespace="Comp.Proj.Core.Service" %>
<%@ Import Namespace="Microsoft.Reporting.WebForms" %>
<%@ Import Namespace="System.Security.Principal" %>
<%@ Import Namespace="System.Net" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2><a href="/Reporting">Back to Reports</a> / <%=ViewData["Report"]%></h2>
<form action="/Reporting/DateViewer" method="get">
Start Date:
<input type="text" name="start" class="datepicker" value="<%=ViewData[" Start "] %>" /> End Date:
<input type="text" name="end" class="datepicker" value="<%=ViewData[" End "] %>" />
<input type="hidden" name="id" value="<%=ViewData[" Report …
Run Code Online (Sandbox Code Playgroud) c# asp.net-mvc reportviewer2008 web-config reporting-services
我在ReportViewer
控件中显示远程报告.报告加载了一些默认参数.到目前为止一切都很好.
但是,当我更改几个输入值并点击时View Report
,报告只显示具有默认值的数据.我在输入字段中更改的参数也会重置.
我拥有的所有代码都是这样的:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt" Height="642px" ProcessingMode="Remote" Width="100%">
<ServerReport ReportPath="http://server.com/Product/Dashboards/test.rdl"
ReportServerUrl="http://server.com/ReportServer" />
</rsweb:ReportViewer>
Run Code Online (Sandbox Code Playgroud)
该代码隐藏基本上是空的.它现在所有的都是空的Page_Load
.
这就是我的全部代码.
但感觉就像一个ViewState问题?但我不知道在哪里看.
当我按下View Report
按钮时,任何人都知道为什么参数会被重新调整?
reportviewer ×4
rdlc ×3
c# ×2
asp.net ×1
asp.net-mvc ×1
c#-3.0 ×1
html ×1
reflection ×1
report ×1
web-config ×1