G
Guest
Hi
For my application I have created a new document extension called .HST.
This extension is assocaited with WORD. For normal word and TXt documents I
am adding Custom Properties automatically using CustomDocumentProperties.Add
This works fine. However as part of my application I store all sorts of
documents types as .HST files. These include .MSG's and JPEG's etc. To these
I cannot add Custom Properties. I open the .HST files using somthing like
xDoc = xAppocuments:Open ( P-FILE-NAME ) anf then add the properties. I
know this works because I can message them out immeadiately. However when I
try to SAVE the document using xAppocuments:Save() I get errors because
the contents of the .HST file are effectively .MSG or .JPEG etc and WORD
wants to convert them. If i was to open the document in WORD manually and
press save I would get the same problem.
If I right click on the .HST I can add CUSTOM Properties manually so why can
I not do it automatically.
Is there an API I need to call to add custom propeties rather than opening
them as a WORD object. Or is there a way I can save the documents without
getting the errors.
For my application I have created a new document extension called .HST.
This extension is assocaited with WORD. For normal word and TXt documents I
am adding Custom Properties automatically using CustomDocumentProperties.Add
This works fine. However as part of my application I store all sorts of
documents types as .HST files. These include .MSG's and JPEG's etc. To these
I cannot add Custom Properties. I open the .HST files using somthing like
xDoc = xAppocuments:Open ( P-FILE-NAME ) anf then add the properties. I
know this works because I can message them out immeadiately. However when I
try to SAVE the document using xAppocuments:Save() I get errors because
the contents of the .HST file are effectively .MSG or .JPEG etc and WORD
wants to convert them. If i was to open the document in WORD manually and
press save I would get the same problem.
If I right click on the .HST I can add CUSTOM Properties manually so why can
I not do it automatically.
Is there an API I need to call to add custom propeties rather than opening
them as a WORD object. Or is there a way I can save the documents without
getting the errors.