function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MandMMandM 

Word doc question, why does it Save-As 'htm'?

I have a simple VF page and controller that downloads the VF page into a word .doc format. I can get the page to open in print view, but once a user saves the file, the view reverts right back to the web layout. 

I can see that when I goto save as in word, it is defaulting to the htm, html file type and is causing the issue I am seeing above. Is there a way to work around this issue, and force word to save-as a .doc?

Thanks!
Saravanan @CreationSaravanan @Creation
Hi ,

Do you want to print the page.

 
MandMMandM
Nope, we dont need to print the page.