Verificar si existe el archivo y lanzar
Posted: Tue Jul 13, 2021 2:13 am
Estimados
como puedo saber si existe el archivo antes de lanzar el PDF
he tratado de buscar en la web pero no lo he podido lograr
como puedo saber si existe el archivo antes de lanzar el PDF
he tratado de buscar en la web pero no lo he podido lograr
- Code: Select all Expand view
- BUTTON ID 'btnprint' LABEL ' Print' ACTION 'PrintPdf()' GRID 2 ICON '<i class="fas fa-home"></i>' CLASS 'btn-primary btnticket' OF o
- Code: Select all Expand view
- <script>
function PrintPdf() {
if existarchivo( 'cFileName.Pdf' )
window.open('cFileName.Pdf' );
}