Empresas Zona Horaria
This commit is contained in:
@@ -45,8 +45,8 @@ Partial Class RH_RepDocumentacionVencida
|
||||
Private Sub RH_DocumentacionVencida_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
CargaCombos()
|
||||
TxtFechaI.Text = Now.AddMonths(-3).ToString("dd/MM/yyyy")
|
||||
TxtFechaF.Text = Now.ToString("dd/MM/yyyy")
|
||||
TxtFechaI.Text = NowADS().AddMonths(-3).ToString("dd/MM/yyyy")
|
||||
TxtFechaF.Text = NowADS().ToString("dd/MM/yyyy")
|
||||
LnkDescargarExcel.Visible = False
|
||||
End If
|
||||
'ExportaExcel()
|
||||
@@ -194,7 +194,7 @@ Partial Class RH_RepDocumentacionVencida
|
||||
Dim documento As ExcelFile
|
||||
Dim ws As ExcelWorksheet
|
||||
Dim NombreReporte As String = "REPORTE DE DOCUMENTACIÓN"
|
||||
Dim TextoFecha As String = "Fecha: " & Now.ToString(" dd/MM/yyyy hh:mm:ss tt")
|
||||
Dim TextoFecha As String = "Fecha: " & NowADS().ToString(" dd/MM/yyyy hh:mm:ss tt")
|
||||
documento = New ExcelFile
|
||||
|
||||
ws = documento.Worksheets.Add("ReporteDocumentacion")
|
||||
@@ -253,7 +253,7 @@ Partial Class RH_RepDocumentacionVencida
|
||||
|
||||
Response.Clear()
|
||||
Response.ContentType = "application/force-download"
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" & NombreReporte & "_" & Now.ToString("yyyyMMddhhmmss") & ".xlsx")
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" & NombreReporte & "_" & NowADS().ToString("yyyyMMddhhmmss") & ".xlsx")
|
||||
Response.BinaryWrite(bytesInStream)
|
||||
Response.End()
|
||||
memoryStream.Dispose()
|
||||
|
||||
Reference in New Issue
Block a user