wordappl:document:saveas - problem

grinder

Member
Hi everyone,

I save a worddocument via progress and then I have a strange problem.
If I use wordappl:document:saveas then in the fileinfo (title there) you can read the first line of the text.


And here is my problem. If I want to send this via an email in word, then you get this "test" in the superscription of the email when you print out this email.

All I want to know is, how can I remove the title in the fileinfo. Is there any possibility to do this or do I have to find another solution.

In the com-handle-viewer there is this:
Code:
NO-RETURN-VALUE <com-handle>: SaveAs ( 
   <anytype>-FileName BY-VARIANT-POINTER,
   <anytype>-FileFormat BY-VARIANT-POINTER,
   <anytype>-LockComments BY-VARIANT-POINTER,
   <anytype>-Password BY-VARIANT-POINTER,
   <anytype>-AddToRecentFiles BY-VARIANT-POINTER,
   <anytype>-WritePassword BY-VARIANT-POINTER,
   <anytype>-ReadOnlyRecommended BY-VARIANT-POINTER,
   <anytype>-EmbedTrueTypeFonts BY-VARIANT-POINTER,
   <anytype>-SaveNativePictureFormat BY-VARIANT-POINTER,
   <anytype>-SaveFormsData BY-VARIANT-POINTER,
   <anytype>-SaveAsAOCELetter BY-VARIANT-POINTER,
   <anytype>-Encoding BY-VARIANT-POINTER,
   <anytype>-InsertLineBreaks BY-VARIANT-POINTER,
   <anytype>-AllowSubstitutions BY-VARIANT-POINTER,
   <anytype>-LineEnding BY-VARIANT-POINTER,
   <anytype>-AddBiDiMarks BY-VARIANT-POINTER ).

Is there something I don't see??

Please help, this is a really annoying thing.

Thanks in advance.
 
Hi grinder,

I think that is default behaviour in Word (when you save a file the first time it sets the Title property to be the first line of text).

Not sure how to programmatically update that. Maybe try wordappl:document:UpdateSummaryProperties () after you have done the saveAs (then save it again)
 

adisney

New Member
Try this:

ch-WordApplication:ActiveDocument:saveas(lv-filename,0).

where lv-filename is a variable containing the name of the file to which you want to save.
 
Top