RE: fop fo input file fop servlet

the fo files a created realtime from an sql query in an asp page. at the
moment it creats an html table with some functions to add headers and
footers at the appropriate spots.  the table is customizable by the client
add/remove a particular column.  this is accomplished by a little java
script that modifies the sql query and other functions that modify the table
so that it appears formatted.  i tried to create the pdf's on the server
with a little vb script.

		dim oWSH  
		Set oWSH = CreateObject("WScript.Shell")  
		oWSH.Run "fop c:\temp\test.fo -pdf c:\test\tem.pdf"
		Set oWSH = Nothing

this does nothing don't know why

i don't know java or xml other than what i've figured out on my own from its
closeness to c.

if have suggestions on other ways to do this task i am definitely open to
going a different route. this one just seemed easiest to me.

matt laywell


-----Original Message-----
From: Dave Pawson [mailto:daveP@dpawson.freeserve.co.uk]
Sent: Monday, December 03, 2001 11:33 PM
To: Matt Laywell
Subject: Re: fop fo input file fop servlet


At 17:55 03/12/2001 -0600, you wrote:
>does anyone know if you can use a url as the fo input file path and name.
>
><http://matt2/fop/fop?fo=c:/temp/test.fo>http://matt2/fop/fop?fo=c:/temp/te
st.fo
>
>this format works fine locally, but on the web the fo file would have to 
>reside on the clients computer
>
><http://matt2/fop/fop?fo=//matt2/project3/test.fo>http://matt2/fop/fop?fo=/
/matt2/project3/test.fo
>
>does not work.
>
>network name not found error.
>
>does anyone knoe whether or not it is possible for the fo parameter to 
>begin with a www. or ip address or server name

Its not normal, and certainly goes against web accessibility protocols  to 
serve fo
directly on the web.
W3C have provided a means of linking the stylesheet to an xml file, so
perhaps
either use that and delivery XML and the stylesheet, which is not really 
practical
today since few will have fop on the client,
or more usefully, deliver the pdf if that's what you want as the delivery 
media,
HTH DaveP

Received on Tuesday, 4 December 2001 11:51:40 UTC