我有这个:
[SELECT
D.numOperador,
SUM(DATEDIFF(MINUTE, D.FechaSalida, D.FechaLlegada)) / 60 AS \[Horas\] ,
SUM(DATEDIFF(MINUTE, D.FechaSalida, D.FechaLlegada)) % 60 AS \[Minutos\]
FROM
trkOperadores O
INNER JOIN trfDespacho D ON O.NumOperador = D.numOperador
WHERE
O.cveTipoOperador = 2
AND O.NumOperador = 900200
AND D.FechaSalida>='2017-03-10 00:00:00.000' AND D.FechaLlegada<='2017-03-11 00:00:00.000'
GROUP BY
D.NumOperador;
GO]
当我在浏览器中单击此文件时,文件已打开。我需要直接进行此下载而不打开它。感谢您的帮助
答案 0 :(得分:1)
<a href="localhost/pdf/data.pdf" download> Download this </a>
找到这个答案你可以顺便使用谷歌而不需要打开一个新的问题
答案 1 :(得分:1)
您可以使用下载属性
<a href="localhost/pdf/data.pdf" download> Download this </a>