我想知道如何在visualforce页面中显示word文档的内容,即在“附件”或“内容”中。我不仅需要查看文本,还需要编辑它。
1 回答
This will not be possible without ActiveX. The only possible solution is to have them edit and upload back. Here is something I would implement:
1. Use documents instead of attachments/Content
2. Create a VF page to display the shared documents/own documents (hyperlink in VF to the doc. record)
3. Create a link to document to view/edit it. (Custom Apex Dev.)
i.e. Using Page Reference, redirect them to '/servlet/servlet.FileDownload?file=IDofthedocument'
I think this should be good enough to not to show the main documents tab (if you dont want the users messing around with the data) and get the functionality working.
I can post the code if required. Please let me know if this helps!