我试图在studio 2010报告中引用字段表达式中的子对象.这曾用于以前的版本.当帐户引用具有属性的另一个对象时,以下用于工作.
=Fields!Account.Value.Name
Run Code Online (Sandbox Code Playgroud)
(Name是子对象的属性,Account是父对象)
相同的表达式语法不再有效.如何在studio 2010中的rdlc中引用报表服务中子对象的属性.
谢谢
在RDLC报告中,在Visual Studio 2008的"设计"视图中,我们在"网站数据源"选项卡中看不到任何内容,并且"添加新数据源"按钮显示为灰色.仅启用"刷新"按钮,单击它不会执行任何操作.我们的业务逻辑层返回业务对象列表,业务逻辑和业务对象项目都由MVC项目引用.这是一个MVC应用程序,因此没有App_Code文件夹.
我们如何让我们的业务对象出现在Website Data Sources列表中,以便我们可以将对象中的字段拖放到RDLC报告中?
我有一个非常简单的RDLC报告,我在标题中使用PNG图像构建.经过多次试验,我们无法获得外部图像来处理分期和生产中的报告.
然后我将图像嵌入RDLC并部署更新的文件.图像显示在ReportViewer控件中.但是,当使用查看器的导出功能来获取PDF时,图像会出现乱码和扭曲.它基本上看起来好像图像就像星球大战的介绍文本,但垂直重复直到它消失.这在我的测试机器和阶段/生产中都会发生.
是否有一些我没有正确嵌入图像的东西?我想过看看我是否可以用另一种方式对图像进行MIME编码,然后将其插入到RDLC中.似乎已经延伸到了工作状态.
我遇到了报告服务的问题,在2005版本上运行本地rdlc文件.
我在HTML中有一个报表查看器设置为在本地运行,如下所示:
<rsweb:ReportViewer ID="ReportingServicesReportViewer" runat="server" Height="100%"
ProcessingMode="Local" ShowParameterPrompts="False" Width="100%">
</rsweb:ReportViewer>
Run Code Online (Sandbox Code Playgroud)
在代码中
// create SqlConnection
SqlConnection myConnection = new SqlConnection(ConnectionString);
myCommand.Connection = myConnection;
SqlDataAdapter da = new SqlDataAdapter(myCommand);
//get the data
DataSet data = new DataSet();
da.Fill(data);
if (data != null && data.Tables.Count > 0 && data.Tables[0].Rows.Count > 0)
{
ReportingServicesReportViewer.Visible = true;
ltrStatus.Text = string.Empty;
//provide local report information to viewer
ReportingServicesReportViewer.LocalReport.ReportPath = Server.MapPath(Report.RDLCPath);
//bind the report attributes and data to the reportviewer
ReportDataSource rds = new ReportDataSource("DataSet1", data.Tables[0]);
ReportingServicesReportViewer.LocalReport.DataSources.Clear(); …Run Code Online (Sandbox Code Playgroud) 我正在使用Microsoft.Reporting.Webforms版本10来解析RDLC文件并生成PDF.RDLC是一个带有几个嵌入式表达式的简单发票.
当我运行应用程序时,我得到一个异常,即在编译表达式时已经调用了已过时的SecurityAction.RequestMinimum.
这是一个已知的bug还是我可以补救的东西?
编译表达式时发生意外错误.本机编译器返回值:'[BC40000]'RequestMinimum'已过时:'程序集级声明式安全性已过时,默认情况下不再由CLR强制执行.有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkID=155570.'.'.
在Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase context,Boolean)上的Microsoft.Reporting.PreviewStore.StoredReport.EnsureCompiled(CatalogItemContextBase itemContext)中的Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context,Byte [] reportDefinition,Boolean generateExpressionHostWithRefusedPermissions,ControlSnapshot&snapshot) Microsoft的Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContextBase itemContext,Boolean rebuild,ControlSnapshot&snapshot)中的Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase context,Boolean rebuild,ControlSnapshot&snapshot)中的rebuild,Byte []和reportDefinition,ControlSnapshot&snapshot). Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession()中的Reporting.LocalService.CompileReport(CatalogItemContextBase itemContext,Boolean rebuild)
让这个工作有点麻烦...我基本上希望报告看起来类似于:

我记得过去这样做的方法是在报表向导中创建"页面组".但是,我相信那是在VS05中,现在报告向导在VS10中非常不同.它现在有列组和行组但没有页组,我看不到如何在没有向导的情况下使其工作.如果尝试寻找教程或示例,但没有太多运气.此外,该网站'gotreportviewer.com'非常可怕,并没有太大的帮助.
我正在使用Winform(C#)和RDLC MySQL.在那里我尝试仅在Tablex中显示日期.
但这种日期格式也有时间.如何删除时间.
我的表达是,..
=Fields!date.Value
Run Code Online (Sandbox Code Playgroud)
请参阅下面的报告.

提前致谢?
我试过= Fields!date.Value.ToString("dd/MM/yyyy")在表达式中它通过错误,..错误1验证时发生错误.HRESULT ='8000000A'
我是Microsoft Rdlc Report Designer扩展和NuGet ReportViewerControl.Winform包.
现在可以在Visual Studio 2017设计器中打开*.rdlc文件,但是当我尝试保存报表时出现错误:"未知报表版本:9.0
此外,我无法创建空*.rdlc文件,因为在新文件...对话框中没有相同的模板
UPD:
在this那一刻,我不知道如何解决,但我知道藿,以避免它:
old在VS2015中打开报告然后保存 - 下次VS2017可以打开/编辑/保存文件.
我在Visual Studio 2017中有一个以前在Visual Studio 2015中开发的AspNet MVC项目.该项目包含许多rdlc文件,这些文件在我编辑其中一个之前一直正常工作.现在,当我尝试从编辑的rdlc下载pdf时,我收到此错误:
此版本的Reporting Services无效或支持此报告的定义.报表定义可能是使用更高版本的Reporting Services创建的,或者包含基于Reporting Services架构格式不正确或无效的内容.详细信息:报表定义具有无效的目标命名空间" http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition ",无法升级.
编辑的rdlc将其命名空间从http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition更改为http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition
该项目使用net framework 4.6.2运行,并安装了Microsoft.ReportViewer.Runtime.Common.12.0.2402.15和Microsoft.ReportViewer.Runtime.WebForms.12.0.2402.15 nuget包
当我尝试以PDF/Excel/Word或打印报告导出报告时,出现错误.错误说明:
Server Error in '/' Application.
Operation could destabilize the runtime.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.
Run Code Online (Sandbox Code Playgroud)
来源错误:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack …Run Code Online (Sandbox Code Playgroud)