hi subhash,
  even the same problem i got.
my problem is , using java.awt.print package we have
the option of drawing in graphics context and printing
the whole screen. what i want is i want to write in
one file and i want to print the file.
is it possible.but i present i am going for third
party program  such as JReport and some thing like
this.
   i will be happy if anybody tell us regarding how to
print a file in java.

jayakumar




--- Subhash_namu <[EMAIL PROTECTED]> wrote:
> Hi,
>  I want to print a text in the memory (in a String)
> in a formatted way i.e.
> in different lines. But while printing using
> java.awt.print package the
> whole lot of text is shown more like a paragraph
> with next line occuring
> only after the first line is full.
>
> eg:
> I want to print in this way -
> Four score and seven years ago our
> fathers brought forth on this
> continent a new
>
> but it comes out to be in this way - (as if I have
> selected the justify
> option in MS-Word)
>
> Four score and seven years ago our fathers brought
> forth on this continent a
> new
>
> can you help me out how to identify the '\n'
> character and print the text.
>
> Subhash
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html


__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to