Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2006

Tip: Looking for answers? Try searching our database.

save document loses headers and footers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nathan Franklin - 23 Feb 2006 00:46 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.