简体   繁体   English

SSRS Visual Studio报告在文件类型之间更改日期

[英]SSRS Visual studio report changing dates between file types

For a report I created, this one date column keeps changing between PDF and excel. 对于我创建的报告,这一日期列在PDF和excel之间不断变化。

For example, in PDF it displays as '12/31/18' (which is the correct date) when I export the same report to excel, it displays as '1/1/2019'. 例如,当我将同一报告导出到excel时,在PDF中它显示为“ 12/31/18”(这是正确的日期),并显示为“ 1/1/2019”。 It is displaying all dates as the actual value + 1 day. 它会将所有日期显示为实际值+ 1天。

Anyone know what's causing this and how to fix it? 有谁知道这是什么原因以及如何解决?

You should set your textbox properties where your date column is to a date format you like. 您应该在日期列所在的位置设置文本框属性为所需的日期格式。

Textbox --> TextBox Properties --> Number

Choose category as Date and then your desired format. 选择类别作为日期,然后选择所需的格式。 It should solve the problem. 它应该解决问题。

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

相关问题 visual studio 2015 ssrs 预览报告没有工作 - visual studio 2015 ssrs preview report no working 在Visual Studio 2010中部署SSRS报告 - Deployment of SSRS Report in Visual Studio 2010 SSRS报表的SQL查询Visual Studio查询设计器 - SQL Query for SSRS Report Visual Studio Query Designer 使用SSRS 2005报表项目的Visual Studio 2008中出错 - Error in Visual Studio 2008 with SSRS 2005 report projects 是否可以在 Visual Studio 2010 中调用 SSRS 2008 R2 报告? - Is it possible to call SSRS 2008 R2 report in Visual Studio 2010? 在Visual Studio 2012中将SSRS报告日期格式切换为美国 - SSRS Report Date Format Switching to US in Visual Studio 2012 Visual Studio报表查看器无法连接到远程SSRS服务器 - Visual Studio Report Viewer does not connect to remote SSRS server 具有灵活日期的SSRS报告订阅计划 - SSRS Report subscription scheduling with flexible dates 在 Visual Studio 中创建 SSRS 报告,但在预览中看不到任何数据 - Creating SSRS report in Visual Studio but can't see any data in preview Visual Studio 2010,本地SSRS报表查看器14,预览为空,但导出和打印工作正常 - Visual Studio 2010, Local SSRS Report Viewer 14, Preview is empty, but Export and Print work fine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM