RE: Printing on predesign form from html

2002-06-11 Thread Graham Lounder

I just started looking at solutions for writing reports for my project.  We
need to print off 5 reports at once, complete with page breaks, and it still
has to work in Netscape 4.  What I found was a free java library to create
dynamic PDF files called iText (http://www.lowagie.com/iText/).  I tested
this out in a struts action servlet and it works great.  Have a look and see
if it can help you out.

Graham

-Original Message-
From: Drago Jenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 6:54 AM
To: 'Struts Users Mailing List'
Subject: Printing on predesign form from html


Has someone solution, how to print from html (jsp) on predesign form (like
printing bills)!

Thanks, Drago





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Printing on predesign form from html

2002-06-11 Thread CARDON Denis

Hi Raj,

Here we have been successful at printing documents with strict constrains on
positioning using Word HTML :

- You create your document in Word putting some sample data exactly where
you want them to be printed, then you save it in --Word HTML format--. 
- Then you can edit and integrate the file in your webapp like a normal jsp
page (or a velocity template) replacing sample data by  tags.
Note : be sure not to mess with the dirty word specific html tags.
- When you send the http response, be sure to mention that the MIME type is
the one associated with M$ Word. This way, when the client ask for the URL,
it opens up automatically in word.

Hopes this help

Denis


> -Original Message-
> From: Rajesh Kalluri [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 3:19 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: Printing on predesign form from html
> 
> 
> Ted, could you elaborate on how to do this. What is  a merge file.
> 
> Regards
> Raj
> 
> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 6:30 AM
> To: Struts Users Mailing List
> Subject: Re: Printing on predesign form from html
> 
> 
> About all you can do is create a merge file to transfer the 
> data and use
> word processing software to handling the actual printing and
> positioning.
> 
> There are also ways to create a PDF in the fly, which could 
> work, but I
> haven't tried that myself.
> 
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Developing Java Web Applications with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
> 
> Drago Jenko wrote:
> >
> > Has someone solution, how to print from html (jsp) on 
> predesign form (like
> printing bills)!
> >
> > Thanks, Drago
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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




Re: Printing on predesign form from html

2002-06-11 Thread Ted Husted

I won't have a chance to elaborate much today, but the basic idea is
that you generate the variable portion of a mail merge file for the a
word processor. Word, for example, can use a CVS file, among other
things. The user then saves this to their local system, and merges the
variable information with a template. 

For the most part, its not a Struts issue, it's a printing from web
applications issue. So you might also want to check around on JSP or
J233 Interest, JGuru, the ServerSide, et cetera. 

http://archives.java.sun.com/

http://archives.java.sun.com/

http://www.theserverside.com/

You might be able to do the same with a PDF using XLS and FOP. Check out
stxx for a little more about that. 

http://www.openroad.ca/opencode/

But I'm not sure how much programatic control you would have over
vertical spacing, kerning, and like that. The word processor kludge I've
used myself to generate batches of invoices, letters, and other reports.

-T.

Rajesh Kalluri wrote:
> 
> Ted, could you elaborate on how to do this. What is  a merge file.
> 
> Regards
> Raj
> 
> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 6:30 AM
> To: Struts Users Mailing List
> Subject: Re: Printing on predesign form from html
> 
> About all you can do is create a merge file to transfer the data and use
> word processing software to handling the actual printing and
> positioning.
> 
> There are also ways to create a PDF in the fly, which could work, but I
> haven't tried that myself.
> 
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Developing Java Web Applications with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
> 
> Drago Jenko wrote:
> >
> > Has someone solution, how to print from html (jsp) on predesign form (like
> printing bills)!
> >
> > Thanks, Drago
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

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




RE: Printing on predesign form from html

2002-06-11 Thread Rajesh Kalluri

Ted, could you elaborate on how to do this. What is  a merge file.

Regards
Raj

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 6:30 AM
To: Struts Users Mailing List
Subject: Re: Printing on predesign form from html


About all you can do is create a merge file to transfer the data and use
word processing software to handling the actual printing and
positioning.

There are also ways to create a PDF in the fly, which could work, but I
haven't tried that myself.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

Drago Jenko wrote:
>
> Has someone solution, how to print from html (jsp) on predesign form (like
printing bills)!
>
> Thanks, Drago

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


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




Re: Printing on predesign form from html

2002-06-11 Thread Ted Husted

About all you can do is create a merge file to transfer the data and use
word processing software to handling the actual printing and
positioning. 

There are also ways to create a PDF in the fly, which could work, but I
haven't tried that myself.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

Drago Jenko wrote:
> 
> Has someone solution, how to print from html (jsp) on predesign form (like printing 
>bills)!
> 
> Thanks, Drago

--
To unsubscribe, e-mail:   
For additional commands, e-mail: