{"id":1132,"date":"2014-09-11T12:20:36","date_gmt":"2014-09-11T15:20:36","guid":{"rendered":"http:\/\/www.franklinjr.com\/blog\/?p=1132"},"modified":"2014-09-11T12:20:36","modified_gmt":"2014-09-11T15:20:36","slug":"conversao-de-doc-ou-docx-para-pdf-no-asp-net-com-microsoft-office-interop-word","status":"publish","type":"post","link":"https:\/\/www.franklinjr.com\/blog\/index.php\/2014\/09\/11\/conversao-de-doc-ou-docx-para-pdf-no-asp-net-com-microsoft-office-interop-word\/","title":{"rendered":"Convers\u00e3o de .doc ou .docx para .pdf no asp.net com Microsoft.Office.Interop.Word"},"content":{"rendered":"<p>Conseguiu utilizar o Microsoft.Office.Interop.Word? Que bom, n\u00e3o conseguiu? Ent\u00e3o desista, n\u00e3o perca horas e horas tentando fazer funcionar dando permiss\u00f5es diferentes na config DCOM para o Documento do microsoft office word, pois a pr\u00f3pria microsoft n\u00e3o recomenda o componente para a utiliza\u00e7\u00e3o de sistemas em asp ou asp.net, conforme o link abaixo:<\/p>\n<p><a title=\"Considera\u00e7\u00f5es para automa\u00e7\u00e3o do lado do servidor do Office\" href=\"http:\/\/support.microsoft.com\/kb\/257757\" target=\"_blank\">http:\/\/support.microsoft.com\/kb\/257757<\/a><\/p>\n<p>&#8220;<strong>A Microsoft atualmente n\u00e3o recomenda e n\u00e3o oferece suporte, aplicativos de automa\u00e7\u00e3o do Microsoft Office de qualquer aplicativo cliente aut\u00f4nomo, n\u00e3o interativo ou componente (incluindo ASP, ASP.NET, DCOM e servi\u00e7os NT), como o Office pode apresentar comportamento inst\u00e1vel e\/ou bloqueio quando o Office \u00e9 executado nesse ambiente<\/strong>.&#8221;<br \/>\n<!--more--><\/p>\n<p>Ainda pesquisando algo que fa\u00e7a esse tipo de processo, achei um usu\u00e1rio no stackOverFlow com o mesmo problema:<\/p>\n<p><a title=\"Converting MS Word Documents to PDF in ASP.NET [closed]\" href=\"http:\/\/stackoverflow.com\/questions\/159744\/converting-ms-word-documents-to-pdf-in-asp-net\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/159744\/converting-ms-word-documents-to-pdf-in-asp-net<\/a><\/p>\n<p>A alternativa indicada \u00e9 o <a title=\"Aspose.Pdf\" href=\"http:\/\/www.aspose.com\/.net\/pdf-component.aspx\" target=\"_blank\">Aspose.Pdf<\/a> \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Conseguiu utilizar o Microsoft.Office.Interop.Word? Que bom, n\u00e3o conseguiu? Ent\u00e3o desista, n\u00e3o perca horas e horas tentando fazer funcionar dando permiss\u00f5es diferentes na config DCOM para o Documento do microsoft office word, pois a pr\u00f3pria microsoft n\u00e3o recomenda o componente para a utiliza\u00e7\u00e3o de sistemas em asp ou asp.net, conforme o link abaixo: http:\/\/support.microsoft.com\/kb\/257757 &#8220;A Microsoft [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[427,425,51],"tags":[],"class_list":["post-1132","post","type-post","status-publish","format-standard","hentry","category-asp-net","category-iis","category-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>Convers\u00e3o de .doc ou .docx para .pdf no asp.net com Microsoft.Office.Interop.Word - Franklin Jr.<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.franklinjr.com\/blog\/index.php\/2014\/09\/11\/conversao-de-doc-ou-docx-para-pdf-no-asp-net-com-microsoft-office-interop-word\/\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/index.php\\\/2014\\\/09\\\/11\\\/conversao-de-doc-ou-docx-para-pdf-no-asp-net-com-microsoft-office-interop-word\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Convers\u00e3o de .doc ou .docx para .pdf no asp.net com Microsoft.Office.Interop.Word\"}]}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Convers\u00e3o de .doc ou .docx para .pdf no asp.net com Microsoft.Office.Interop.Word - Franklin Jr.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.franklinjr.com\/blog\/index.php\/2014\/09\/11\/conversao-de-doc-ou-docx-para-pdf-no-asp-net-com-microsoft-office-interop-word\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/www.franklinjr.com\/blog\/index.php\/2014\/09\/11\/conversao-de-doc-ou-docx-para-pdf-no-asp-net-com-microsoft-office-interop-word\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.franklinjr.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Convers\u00e3o de .doc ou .docx para .pdf no asp.net com Microsoft.Office.Interop.Word"}]}]}},"_links":{"self":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1132"}],"version-history":[{"count":2,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1132\/revisions"}],"predecessor-version":[{"id":1134,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1132\/revisions\/1134"}],"wp:attachment":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}