Answered by:
DOCX/DOC to EMF generation using SharePointServer2010

Question
-
Hi,
Is it possible to generate emfs/wmfs out of DOCX/DOC files using Word Automation Services in Share Point Server 2010? Is it that Word Automation Services doesn't allow job.Settings.OutputFormat to be EMF/WMF .I can see one of the option as OutputFormat as SaveFormat.Automatic which basically picks the output conversion format from the extension but with emf file , the job fails.
Let me know if anybody can guide.
-Vinay
Friday, October 1, 2010 11:30 AM
Answers
-
The Word Automation service allows you to Save to any file format that Word 2010 can natively convert to.
So if you open up a brand new install of Word 2010 (without any extensions) and check the "SaveAs" dialog ... you will be limited to exactly the same list of formats that you get there.
EMF/WMF is not supported by Word 2001 natively, so it is also not supported by the SharePoint 2010 Word Automation Service.
regards
Martin Hatch
MCPD .Net Web Development
MCTS WSS 3.0 | MOSS 2007
Visit my Blog - www.martinhatch.com- Marked as answer by Wayne Fan Thursday, October 7, 2010 5:39 AM
Friday, October 1, 2010 11:39 AM
All replies
-
The Word Automation service allows you to Save to any file format that Word 2010 can natively convert to.
So if you open up a brand new install of Word 2010 (without any extensions) and check the "SaveAs" dialog ... you will be limited to exactly the same list of formats that you get there.
EMF/WMF is not supported by Word 2001 natively, so it is also not supported by the SharePoint 2010 Word Automation Service.
regards
Martin Hatch
MCPD .Net Web Development
MCTS WSS 3.0 | MOSS 2007
Visit my Blog - www.martinhatch.com- Marked as answer by Wayne Fan Thursday, October 7, 2010 5:39 AM
Friday, October 1, 2010 11:39 AM -
Thanks for the reply.Word doesn't support saving as EMF however Powerpoint supports SaveAs EMF/WMF ,So as per your reply I assume getting EMF/WMFs from Powerpoint should be possible but that doesn't seem to work. Can you help?
Tuesday, October 12, 2010 7:51 AM -
Technically yes .. but there is no "PowerPoint Automation Services" ... sorry
regards
Martin Hatch
MCPD .Net Web Development
MCTS WSS 3.0 | MOSS 2007
Visit my Blog - www.martinhatch.comTuesday, October 12, 2010 9:09 AM -
I am pretty sure Word Automation service is just for Word ... thats why it has "Word" in the title.
As I previously stated:
"The Word Automation service allows you to Save to any file format that Word 2010 can natively convert to"
Word cannot natively open PPTX files ... nor can it save to EMF/WMF ... so you can't use the Word Automation Service for this.
regards
Martin Hatch
MCPD .Net Web Development
MCTS WSS 3.0 | MOSS 2007
Visit my Blog - www.martinhatch.comTuesday, October 12, 2010 9:41 AM -
Word Automation Services are not just meant for Word but other office apps as well(PPT,EXCEL).I can make PDF out of PPTX using WordAutomationServices then Why is this not supported?
Note - here is the MSDN article on Developing with the Word Automation Service (http://msdn.microsoft.com/en-us/library/ff742315.aspx)Supported Source Document Formats
The supported source document formats for documents are as follows.
- Open XML File Format documents (.docx, .docm, .dotx, .dotm)
- Word 97-2003 documents (.doc, .dot)
- Rich Text Format files (.rtf)
- Single File Web Pages (.mht, .mhtml)
- Word 2003 XML Documents (.xml)
- Word XML Document (.xml)
Supported Destination Document Formats
The supported destination document formats includes all of the supported source document formats, and the following.
- Portable Document Format (.pdf)
- Open XML Paper Specification (.xps)
regards
Martin Hatch
MCPD .Net Web Development
MCTS WSS 3.0 | MOSS 2007
Visit my Blog - www.martinhatch.com- Proposed as answer by Martin Hatch Tuesday, October 12, 2010 9:44 AM
Tuesday, October 12, 2010 9:43 AM