Writting to a file with persisting old file setting.
1 posts in topic
Flat View  Flat View

Posted By:   Harsh_Sugandhi
Posted On:   Tuesday, April 9, 2002 10:36 PM

Hi all!
I have .doc and .sdw file saved with some print setting properties setted(like Top, Left, Right, Bottom, Landscape/Portrait). When I write into these files using PrinWriter Object then all the properties of these files set to default automatically. I want to write into any of these files with all the printing properties persisted.
Is it possible?
Thanx in advance.

Re: Writting to a file with persisting old file setting.

Posted By:   Stephen_Ostermiller  
Posted On:   Wednesday, April 10, 2002 04:33 AM

A printwriter totally replaces the file. There are two approaches to take. One is to read the file, and write a new file that preserves these properties. The other way would be to open the file using a RandomAccessFile which would let you alter the file in place.
About | Sitemap | Contact