hello,
i am trying to call SaveAs to save my document to file...
i use this code
Doc.SaveAs(Application.StartupPath() & "\Reports\" & ReportID & ".doc",
FileFormat:=Word.WdSaveFormat.wdFormatDocument, LockComments:=False,
Password:="", AddToRecentFiles:=True, WritePassword:="",
ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False,
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:=False)
my problem is, it doesnt save the headers and footers of the pages.... I
have no idea why, but if I do it manually it will save them fine...
The code above it code i got from the word macro recorder, which i recorded
when is aved the file manually....
Could someone please point me in the right direction.
thanks very much
nathan
Nathan Franklin - 23 Feb 2006 00:50 GMT
maybe it is only working when the word document is visible??
this looks like the case from further tests
why would this be?
> hello,
>
[quoted text clipped - 19 lines]
>
> nathan