To download files from a web page that are in the server , to do the following thing:
Create a Report Main with the property Call Protocol in HTTP, that have the following structure:
a) Rules
Parm( &ServerPath, &FileName );
// &ServerPath es la ruta absoluta en el servidor del archivo a descargar.
// NombreArchivo es el nombre que el usuario verá en la ventana de descarga y le será sugerido para grabar el archivo en disco.
b) Source
&Httpresponse.addheader('Content-Type','application/octet-stream')
&Httpresponse.addheader('Content-Disposition','attachment; filename=' + Trim ( &FileName ))
&Httpresponse.addfile(&ServerPath)
Tuesday, May 6, 2008
Web.Misc - Download files from web page (web panel)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment