Robert A. Manter Family wrote:

> I keep a confidential personal journal. To keep it private, I use
> password protection, I turn off automatic backup, and I save it to
> floppy disk so that it is never on the hard drive. I don't even want
> to copy and paste entries using the clipboard. I do however want to
> have a copy disk. In WordPerfect 6.1 I have been able to save an
> entry on a floppy, remove that floppy and insert a second floppy and
> hit save, and it has worked. With OpenOffice when I insert the second
> disk and push the space bar once to make it slightly different and
> then hit save, I have gotten this message "General Error General
> input/output error" This seems to me to be because the disk is sensed
> as a different disk. Is there a way I can override this and "make"
> Open Office do a second save to a different disk without having to
> use clipboard or have the stuff on the hard drive? Thanks,
> [EMAIL PROTECTED]
The problem is that "SaveAs" binds OOo to the new file. What you need is
 that OOo creates a Copy of the current file.

You could use a macro to achieve this:

sub SaveCopyOfDocument

  dim document   as object
  dim dispatcher as object

  document   = ThisComponent.CurrentController.Frame
  dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

  dim args(0) as new com.sun.star.beans.PropertyValue
  args(0).Name = "SaveTo"
  args(0).Value = True

  dispatcher.executeDispatch(document, ".uno:SaveAs", "", 0, args())

end sub

Please note that you must use at least one "usual" Save or SaveAs to
clear the "Modified" flag of your document.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to