TextFilePrinting using jdk1.4(DocFlavor class)
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   cpsom_cpsom
Posted On:   Wednesday, November 14, 2001 12:30 AM

my complete code involves parsing one xml document , getting the data and after processing writting all these data in one text file and finally sending it for printing using Docflavor/PrintAttribute classes ...(all these works in one step only) now my question is .. If i write one text file and save the file and send for printing it's not a problem but if i print the file using above mentioned one step .. it doesn't print in correct format , after every new line it starts printing from 1'st column even if the data is starting from say some 10'th column position Though the file in notepad is perfectly in the same format in which i want. so somebody please help me in printing the .txt file. Thanks cpsom   More>>

my complete code involves parsing one xml document , getting the data and after processing writting all these data in one text file and finally sending it for printing using Docflavor/PrintAttribute classes ...(all these works in one step only)

now my question is ..
If i write one text file and save the file and send for printing it's not a problem but if i print the file using above mentioned one step .. it doesn't print in correct format , after every new line it starts printing from 1'st column even if the data is starting from say some 10'th column position Though the file in notepad is perfectly in the same format in which i want.

so somebody please help me in printing the .txt file.

Thanks
cpsom

   <<Less
About | Sitemap | Contact