No, you misunderstood me. Open Microsoft Word. Create a new blank document
*using Word*. Save that document. Now use this document as
your template.

-Ryan

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 29, 2004 5:53 AM
Subject: Re: Create new Word doc!


> > Create a blank document in Word then add to it using POI.
>
>
> Hmmm... I don't think that is what Ionita meant.
>
>
>
> We have the same Problem: We want to open a new, empty Word document for
> the user with a well-known name in well-known location. If we just create
> an empty (0 byte) ".doc" file, Word thinks it is a text only file and the
> user would have to use "save as...". Copying an empty file would predefine
> the author and other fields, which is not what we are looking for.
>
>
>
> BTW: It is a three-liner to create a HSSFWorkbook, but HWPFDocument has
> only a constructor taking an InputStream... I looked at the source, but it
> seems not trivial to add.
>
>
>
> Rüdiger
>
>
>  > ----- Original Message ----- 
>  > From: "Alexandru, Ionita" <[EMAIL PROTECTED]>
>  > is there a way to create a new word document
>  > and write in it, only using POI, and then save it?
>
>
>
>
>
>
>
>
> ______________________________________________________________________
>  This message is intended for the addressee or its representative only.
>   Any form of unauthorized use, publication, reproduction, copying or
>   disclosure of the content of this e-mail is not permitted. If you are
not
>   the intended recipient of this e-mail message and its contents, please
>   notify the sender immediately and delete this message and all its
>   attachments subsequently.
>
>   command ag
>


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

Reply via email to