FoxInCloud
Report Problem
Ola Thierry, After a few days busy, I came back to work with FoxInCloud today. After the update to version 2.27 beta 6, the message is appearing when I generate a report.
Follow the code below.
if thisForm.wlWeb && APPLICATION RUNS IN WEB MODE (ELSE is desktop mode)
&& {en} Manual FIC adaptation: report to PDF in Web mode using a PDF generator
&& {fr} Adaptation manuelle FiC : gÈnÈrer un Ètat PDF avec un gÈnÈrateur
* {en} Generate PDF using the appropriate generator
* {fr} GÈnÈrer le PDF avec le gÈnÈrateur choisi par l'utilisateur
SET REPORTBEHAVIOR 90
*-FIC- Replaced by FoxInCloud Adaptation Assistant version 2.25 (source mode) on 11/01/2017 21:50
*-FIC- DO LOCFILE('FoxyPreviewer.APP')
*if thisForm.wlWeb
* DO thisForm.wLocfile('', 'FoxyPreviewer.APP')
*ELSE
DO LOCFILE('FoxyPreviewer.APP')
*ENDIF
lcPDFengine = 'FoxyPreviewer'
lcPDFout = Textmerge([<<Addbs(Sys(2023))>>RELATORIODEEXTRATODEBANCOS_<<SYS(3)>>.pdf]) && PDF > VFP temp folder
try
do case
* =================================================
case m.lcPDFengine == 'FoxyPreviewer'
&& {en} Though FoxyPreviewer works fine in desktop mode, you may face an issue in production / COM mode (see URL below)
&& {fr} Si FoxyPreviewer fonctionne parfaitement en mode deskotp, il peu poser un problËme en mode COM (voir l'URL ci-dessous)
&& https://foxypreviewer.codeplex.com/workitem/10921
* --------------------------------
REPORT FORM "EXTRATOB"; && {en} invokes foxyPreviewer PDF writer automatically {fr} appelle le gÈnÈrateur de PDF automatiquement
object type 10; && Regular PDF -- https://foxypreviewer.codeplex.com/documentation
to file (m.lcPDFout)
* --------------------------------
endcase
catch to m.result
success = .F.
result = cException (m.result)
endtry
* {en} Now display generated PDF to the User
* {fr} Afficher le PDF gÈnÈrÈ ‡ l'utilisateur
do case
case !m.success
case .F. &&thisForm.opgInto.Value = 1 && {en} child form - no popup blocker issue {fr} Ècran enfant - aucun problËme d'anti-popup
thisForm.wForm(;
'form\reportChild.scx';
, .F.; && modeless
, m.lcPDFout;
)
&& {en} as we no longer use the 'DO FORM' command,
&& {en} project manager is no longer able to figure out that the 'reportChild.scx' form
&& {en} should be added/included into the project; this instructions works around this.
&& {fr} comme nous n'utilisons plus la commande 'DO FORM',
&& {fr} le gestionnaire de projet n'a plus moyen de savoir que l'Ècran 'reportChild.scx'
&& {fr} doit Ítre ajoutÈ/inclus au projet. Cette instruction comble cette lacune.
external form reportChild
otherwise && {en} new tab or window - user needs to accept popup on this site {fr} nouvelle page - l'utilisateur doit accepter les 'popups' sur ce site
success = thisForm.wFileSaveAs(; && {en} delivers the file to the user in a new browser tab {en} affiche le fichier dans un nouvel onglet du navigateur
m.lcPDFout;
,@m.result;
, 'Extrato de bancos';
)
ENDCASE
DELETE FILE &lcPDFout
ENDIF
Hi Arcadio,
Known issue fixed in 2.27.0-beta.7
to be released soon.
I guess it occurs while logging the request; please post the call stack (after choosing debug
) to make sure where it happens.
Thanks
Problem fixed! Thank you!