NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on May 15, 2012, 04:59:20 AM
-
Hi Bruce,
my war to create a pdf from frb and sending it to client is hard. i´ve changed some things:
. create a NetWebPage to send PDF after it be created by FRB that is called from precessed code embed;
. so, the first time it´s ok, but if i change parameters to print another report it still sending the first one;
. the BROWSE CAN CACHE FILE is unchecked
what´s happen?
thanks
-
In the page, before the call to p_web._sendfile
set
p_web.ForceNoCache = 1
Cheers
Bruce
-
Yes Bruce,
I´m using this code:
if not p_web.replyCompleted
If Loc:NoRecords
Loc:html = '<p>Nenhum registro encontrado.</p>'
p_web.ParseHTML(loc:html)
ElsIf not exists(loc:PDFName)
Loc:html = '<p>O procedimento de impressão falhou em criar o relatório ['&clip(loc:PdfName)&']</p>'
p_web.ParseHTML(loc:html)
Else
p_web.ForceNoCache = 1
p_web.ReplyContentType = p_web._GetContentType('.pdf')
p_web._Sendfile(loc:PDFName)
End
End
thanks