xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch...@netstyle.ch
Subject Re: fop and .bat
Date Mon, 16 Sep 2002 14:48:14 GMT
Hi

For Windows 98 this is right, yes. The window cannot be closed with
any method. I tried for instance objCmd.Terminate() but it doesn't
close the shell. So you need to close it manually...

In W2K the shell doesn't appear on screen. It can be found in the
task manager as a process which is for us the best solution...

Regards

Ch. Wysseier
netstyle.ch

---- Original Message ----
Von: cyril@planetexml.com
An: fop-user@xml.apache.org, 
Betreff: Re: fop and .bat
Datum: Mon, 16 Sep 2002 16:12:52 +0200

>Hy,
>
>I just wanted to know if it was possible to close the DOS window 
>after to
>have opened it with the code I have transmitted.
>Apparently, as you said, it's not possible, right?
>So <you have to close it manually?
>
>Best,
>Cyril.
>_______________________________
>
>Cyril Vidal
>Email: cyril@planetexml.com
>Web: http://www.planetexml.com
>----- Original Message -----
>From: <chris@netstyle.ch>
>To: <fop-user@xml.apache.org>
>Sent: Monday, September 16, 2002 3:28 PM
>Subject: Re: fop and .bat
>
>
>> Hi
>>
>> I am not exactly sure what you intend to do because the code you
>> transmitted has nothing to do with a Batch file. It's normal
>> JavaScript Code to start fop using Windows Scripting Host. Do you
>> call this script from a batch file? More information would perhaps 
>be
>> helpful...
>>
>> What I know is that running the shell using Windows Scripting Host
>> does open a (not closeable) DOS window on Windows 98 but not on 
>W2K.
>> For more infos about this effect consult http://groups.google.com
>> where you will find a lot of articles about this topic.
>>
>> A documentation about Windows Scripting Host and its objects and
>> methods you find at http://msdn.microsoft.com/scripting
>>
>> Regards
>>
>> Ch. Wysseier
>> netstyle.ch
>>
>> ---- Original Message ----
>> Von: cyril@planetexml.com
>> An: fop-user@xml.apache.org,
>> Betreff: Re: fop and .bat
>> Datum: Mon, 16 Sep 2002 14:35:30 +0200
>>
>> >hy,
>> >
>> >I run a fop application via a .bat.
>> >Problem, with this code:
>> >var WSHShell = new ActiveXObject("Wscript.Shell");
>> >
>> >var theCmdLine = "fop2.bat" ;
>> >
>> >WSHShell.Run( theCmdLine, 1, true );
>> >
>> >window.open("result.pdf");
>> >
>> >I have to first close the Dos window before the pdf file opens.
>> >
>> >Some one knows how I can do so that the DOs window automatically
>> >closes?
>> >
>> >I've tried to chang the second parameter in the line
>> >
>> >WSHShell.Run( theCmdLine, 1, true );
>> >
>> >but without success.
>> >
>> >Thanks in advance for your responses,
>> >
>> >Best,
>> >
>> >Cyril.
>> >
>> >_______________________________
>> >
>> >Cyril Vidal
>> >Email: cyril@planetexml.com
>> >Web: http://www.planetexml.com
>> >
>>
>
>
>


Mime
View raw message