Date:  07/29/2003 02:58:04 AM Msg ID:  001561
From:  Arnaud Thread:  001531
Subject:  Re: Opened window after report generation
thank's a lot for your help
 
Arnaud
Sent by FoxWeb Support on 07/15/2003 12:37:50 AM:
The only window titled "FoxWeb" is the FoxWeb Channel window itself.  It's possible that the window becomes visible to display the "File already exists" dialog box.  One would think that setting safety to off would suppress this dialog, but it does not seem to.  An alternate solution would be to save the report to a temporary file name and then delete it after you are done:
 
M.TempFile = SYS(2023) + '\ + SYS(2015) + LTRIM(STR(Request.CurrentChannel)) + '.PDF'
REPORT FORM 'toto.frx' NOCONSOLE TO FILE (M.TempFile) NOWAIT
 
Following the report generation you should include code that either serves the PDF file, or sends a redirect command to the browser with a static URL pointing to the PDF file.  If you are serving the PDF file via FoxWeb, then you can simply delete the file in the same script.  If on the other hand you are sending a redirect command, you will need to write a little batch file that cleans up your temp directory every day.

FoxWeb Support Team
support@foxweb.com email

Sent by Arnaud on 07/09/2003 11:40:53 PM:
Thanks for your answer,
 
First of all, i want to print on the server printer. In fact, in a PDF generator, because i didn't find any other solution to send a FOXWEB report on the client's browser ...
 
The window i'm talking about is the foxweb window named "FOXWEB1". It doesn't disapear after the report is generated. One solution is to hide this window with the HIDE WINDOW command. Not realy a clean solution but it works!
 
Thanks for all. Have a nice day
 
Arnaud
Sent by FoxWeb Support on 07/09/2003 10:18:50 PM:
Dear Arnaud,
 
First of all I should mention that running a report from a FoxWeb script with the TO PRINTER option will not cause the output to be sent to the client's printer, but rather to the printer attached to the Web server.  Is this what you want?
 
I am not sure which window you are referring to.  Does this window stay around after the report is printed?  What is the content of the window?  I tried running a report within FoxWeb and even-though a window appears displaying the report generation progress, this window disappears as soon as the report generation is done.

FoxWeb Support Team
support@foxweb.com email

Sent by Arnaud on 07/08/2003 02:12:06 AM:
Hi
 
Here is my problem :  I want to generate a fox report with a foxweb script without opening the foxweb window.
 
No problem to generate the report with command :
"REPORT FORM 'toto.frx' NOCONSOLE TO PRINTER NOWAIT"
 
In foxweb configuration panel the "Hide windows" box is checked
 
I do not want to use foxweb as a service.
 
How can i do to hide or not open the "FoxWeb1" widow that appears each time i generate a report.
 
Thanks to help me