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
Vin BVin B 

how to set read only property to word doc generated by visual force page?

I am getting the content of visual force page as word document  using  the contentType="application/msword#{!fileName}.doc" . 
But when word doc is downloaded I want it to be read only.i.e it should not be editable.
 Is there any way to add some property in following xhtml tag which used in that vf page??
<html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns='http://www.w3.org/TR/REC-html40'>

Please guide me :(
 
Vin BVin B
Hi jessie, i cannot render as pdf since the vf page contains dynamic apex component.when i tried to render as pdf it gives 'pdf genration failed ,check mark up'  ..so i want to convert it as word doc and set the read only property. It would be great if i can be able to generate pdf with dynamic components.The dynamic components contains many output panels which are created inside controller depending on different scenarios