GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
FileDisplay
FileDisplay
Iniciado por vicheka, jul., 17 2009 10:14 AM - 1 resposta
Conecte-se…
vicheka
#1
Publicado em julho, 17 2009 - 10:14 AM
Dear all,
In webdev in order to generate a download dialogue box => I have to write code like this:
FileDisplay
(
CompleteDir
(
fWebDir
(
)
) +
"PDF\"
+
"mode_fact_seine_et marne.pdf"
,
"application/pdf"
,
"mode_fact_seine_et marne.pdf"
)
Even though it could generate the download dialogue box but It requires to have full path of the file pdf and that pdf file has to be located in the server with in the site. However, if that pdf file is located in another server => This function FileDisplay are not usefull anymore because I have try to put like this:
FileDisplay
(
"http:\\192.168.100.1\"
+
"PDF\"
+
"mode_fact_seine_et marne.pdf"
,
"application/pdf"
,
"mode_fact_seine_et marne.pdf"
)
=> It could not generate the download dialogue box but instead generate ERROR:
What could I do? => Please anyone help me please
I am hopeless...
Thanks
Best Regards,
Vicheka
Denunciar
0
0
Hilario PEREZ CORONA
#2
Publicado em agosto, 15 2009 - 9:41 AM
The problem is that you cannot send the file to a client that is on another server.
You have two options here...
1. Download the file from the other server using HTTPRequest, and then send it using StringDisplay... Or download it with HTTPRequest, save it with fSaveText, then use FileDisplay to send the file to the client... I won't recommend this because it would consume extra bandwith and if the file is big, a LOT of memory.
2. Open the file address using browser code: BrowserOpen("http:\\192.168.100.1\" + "PDF\" + "mode_fact_seine_et marne.pdf")
This last option will open a new browser so the user can download the file.
Denunciar
0
0
→ Voltar para WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto