Marcio Marchini
2006-01-23 19:00:18 UTC
Hi,
How can I do a "Save As Copy" as present in programs like Photoshop etc?
I have a doc, foo.doc loaded. I want to save it as foo.xml, but the
problem is that the SaveAs call saves the XML file but, as side-effect,
changes the loaded document path (to be the XML file). I just want to
save an XML version without any side effect to the loaded doc. Basically
I want to save foo.doc into a file temp.xml and not change the loaded
foo.doc at all.
Ideas?
Currently I SaveAs, Close (the XML) and (re)Open the original .DOC,
re-positioning the selection as it was before saving as XML. Annoying.
In one particular case (one particular user's PC) Word is bombing in the
call to Open (from C#). I posted the issue in the other newsgroup,
oleinterop. So, I am trying to avoid the need for Close/Open.
Making a full copy in memory as a new doc sounds like an option too,
probably as annoying and as likely to cause its own problems too.
Thanks,
marcio
How can I do a "Save As Copy" as present in programs like Photoshop etc?
I have a doc, foo.doc loaded. I want to save it as foo.xml, but the
problem is that the SaveAs call saves the XML file but, as side-effect,
changes the loaded document path (to be the XML file). I just want to
save an XML version without any side effect to the loaded doc. Basically
I want to save foo.doc into a file temp.xml and not change the loaded
foo.doc at all.
Ideas?
Currently I SaveAs, Close (the XML) and (re)Open the original .DOC,
re-positioning the selection as it was before saving as XML. Annoying.
In one particular case (one particular user's PC) Word is bombing in the
call to Open (from C#). I posted the issue in the other newsgroup,
oleinterop. So, I am trying to avoid the need for Close/Open.
Making a full copy in memory as a new doc sounds like an option too,
probably as annoying and as likely to cause its own problems too.
Thanks,
marcio