RE: Visuaal Basic

2002-12-02 Thread Matthew Lancashire
I would rather not use the command line version or FOP. I wanted to knock up an 
ActiveX component for embedding in a large app and need to
Use the classes so that I get more control and feedback.



Matthew Lancashire
IT Project Manager
Initial Electronic Security Ltd
Tel.:   01254 688555
FAX:01254 267552


-Original Message-
From:   Calero, Roberto [SMTP:[EMAIL PROTECTED]
Sent:   Sunday, December 01, 2002 9:38 PM
To: '[EMAIL PROTECTED]'
Subject:RE: Visuaal Basic

  File: ATT6.htm  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Visuaal Basic

2002-12-02 Thread Jeff_Mitchell

Matthew-

I ran into the same problem as you (I was trying to call FOP from an ASP
page), and what it looks like we need is some sort of VB-compatible version
of JNI, which allows C++ apps to call Java apps natively.

I ended up doing what others have suggested, and calling FOP via a shell.
Because of the potentially long render times in my application, I actually
separated the FOP call from the ASP page, and used a status field in a
database to give the user feedback as to where in the rendering process we
were.  Basically, the ASP just creates a row in a table, and periodocally
(on a 10-second META refresh) checks the status field for completion.  A
separate, VB listening app gets the new request, calls FOP, and monitors a
log file to check for completion.  On completion, it updates the status
field, and the ASP gives the user a link to their PDF.

It's kind of a kludge, but it was the only way I could think of to get
VB/ASP to talk to FOP, while allowing some semblance of user feedback.  One
other alternative you may want to consider is a .NET version of FOP that
someone posted to this list.  I believe they made source available, so even
if the .NET implementation isn't a perfect fit, perhaps the source could
give you some ideas.

I hope at least part of that helps.

-Jeff



   
Matthew 
   
LancashireTo: '[EMAIL PROTECTED]' [EMAIL 
PROTECTED]
[EMAIL PROTECTED]   cc:
  
es.uk.comSubject: RE: Visuaal Basic
   

   
12/02/2002  
   
06:50 AM
   
Please respond  
   
to fop-user 
   

   

   




I would rather not use the command line version or FOP. I wanted to knock
up an ActiveX component for embedding in a large app and need to
Use the classes so that I get more control and feedback.



Matthew Lancashire
IT Project Manager
Initial Electronic Security Ltd
Tel.:   01254 688555
FAX:   01254 267552


-Original Message-
From:   Calero, Roberto [SMTP:[EMAIL PROTECTED]
Sent:   Sunday, December 01, 2002 9:38 PM
To:'[EMAIL PROTECTED]'
Subject:RE: Visuaal Basic

  File: ATT6.htm 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Visuaal Basic

2002-12-01 Thread Calero, Roberto
Title: RE: Visuaal Basic





VBScript and Visual Basic are two separate things and for executing a process from VB you do not need Windows Scripting whatsoever. VB gives you the ability to execute a process thru a shell as any other programming language does.

The code would look as the following:


 h = Shell(COMMAND.COM /C pathname)


Where pathname is the full path to the file you want to execute (in your case it might be a batch file)




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 30 November 2002 5:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Visuaal Basic



Hi Matthew


Using the Windows Scripting Host 5.6 and VBScript you are able to
call any program through the shell (WScript.Shell).


Refer to http://msdn.microsoft.com/scripting especially
http://msdn.microsoft.com/library/default.asp?url="">
t56/html/wslrfexecmethod.asp for further information.


Drop a message to the list if you have any problems to implement it
or further questions.


Regards, 


Chris


 Original Message 
Von: [EMAIL PROTECTED]
An: [EMAIL PROTECTED], 
Betreff: Re: Visuaal Basic
Datum: Fri, 29 Nov 2002 17:37:01 -


Can I embed the FOP java class in a VB/VB Script program
Matthew Lancashire
IT Project Manager
Initial Electronic Security Ltd
Tel.: 01254 688555
FAX: 01254 267552



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Visuaal Basic

2002-11-29 Thread chris
Hi Matthew

Using the Windows Scripting Host 5.6 and VBScript you are able to
call any program through the shell (WScript.Shell).

Refer to http://msdn.microsoft.com/scripting especially
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/scrip
t56/html/wslrfexecmethod.asp for further information.

Drop a message to the list if you have any problems to implement it
or further questions.

Regards, 

Chris

 Original Message 
Von: [EMAIL PROTECTED]
An: [EMAIL PROTECTED], 
Betreff: Re: Visuaal Basic
Datum: Fri, 29 Nov 2002 17:37:01 -

Can I embed the FOP java class in a VB/VB Script program
Matthew Lancashire
IT Project Manager
Initial Electronic Security Ltd
Tel.:  01254 688555
FAX:   01254 267552



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]