{"id":4096,"date":"2015-10-23T08:20:22","date_gmt":"2015-10-22T23:20:22","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=4096"},"modified":"2015-10-23T08:20:22","modified_gmt":"2015-10-22T23:20:22","slug":"exportasfixedformat","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/exportasfixedformat\/","title":{"rendered":"PDF \u307e\u305f\u306f XPS \u5f62\u5f0f\u3067\u51fa\u529b\uff08ExportAsFixedFormat \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>ExportAsFixedFormat \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u30d6\u30c3\u30af\u3084\u30b7\u30fc\u30c8\u306e\u5185\u5bb9\u3092 PDF \u5f62\u5f0f\u307e\u305f\u306f\u3001XPS \u5f62\u5f0f\u3067\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>ExportAsFixedFormat<\/strong> ( <em>type<\/em> [, <em>filename<\/em>, <em>quality<\/em>, <em>includedocproperties<\/em>, <em>ignoreprintareas<\/em>, <em>from<\/em>, <em>to<\/em>, <em>openafterpublish<\/em>, <em>fixedformatextclassptr<\/em> ] )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Workbook \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3001<strong>Sheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3001<strong>Chart \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3001<strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>type&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u51fa\u529b\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e\u3092\u8868\u3059 <strong>XlFixedFormatType \u5217\u6319\u578b<\/strong> \u306e\u5b9a\u6570\u307e\u305f\u306f\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffccc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"50\" bgcolor=\"#ffffccc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTypePDF<\/td>\n<td width=\"50\" align = \"center\">0<\/td>\n<td width=\"400\">PDF \u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\uff08\u62e1\u5f35\u5b50\uff1a.pdf\uff09\u3067\u51fa\u529b<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTypeXPS<\/td>\n<td width=\"50\" align = \"center\">1<\/td>\n<td width=\"400\">XPS \u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\uff08\u62e1\u5f35\u5b50\uff1a.xps\uff09\u3067\u51fa\u529b<\/td>\n<\/tr>\n<\/table>\n<p><\/li>\n<li>filename&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u4fdd\u5b58\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30d1\u30b9\u3092\u542b\u3081\u306a\u3044\u5834\u5408\u306f\u3001\u30ab\u30ec\u30f3\u30c8\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<\/li>\n<li>quality&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u51fa\u529b\u54c1\u8cea\u3092\u8868\u3059 <strong>XlFixedFormatQuality \u5217\u6319\u578b<\/strong> \u306e\u5b9a\u6570\u307e\u305f\u306f\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffccc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"50\" bgcolor=\"#ffffccc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlQualityStandard<\/td>\n<td width=\"50\" align = \"center\">0<\/td>\n<td width=\"400\">\u6a19\u6e96\u54c1\u8cea\uff08\u65e2\u5b9a\u5024\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlQualityMinimum<\/td>\n<td width=\"50\" align = \"center\">1<\/td>\n<td width=\"400\">\u6700\u5c0f\u9650\u306e\u54c1\u8cea<\/td>\n<\/tr>\n<\/table>\n<p><\/li>\n<li>includedocproperties&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 \u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u542b\u3081\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong> \u3092\u6307\u5b9a\u3001\u542b\u3081\u306a\u3044\u5834\u5408\u306f\u3001<strong>False<\/strong> \u306b\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<\/li>\n<li>ignoreprintareas&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5370\u5237\u7bc4\u56f2\u3092\u7121\u8996\u3059\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong> \u3092\u6307\u5b9a\u3001\u3057\u306a\u3044\u5834\u5408\u306f\u3001<strong>False<\/strong>\uff08\u65e2\u5b9a\u5024\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<\/li>\n<li>from&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5370\u5237\u3092\u958b\u59cb\u3059\u308b\u30da\u30fc\u30b8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u5148\u982d\u306e\u30da\u30fc\u30b8\u304b\u3089\u5370\u5237\u3057\u307e\u3059\u3002<\/li>\n<li>to&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5370\u5237\u3092\u7d42\u4e86\u3059\u308b\u30da\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u6700\u5f8c\u306e\u30da\u30fc\u30b8\u307e\u3067\u5370\u5237\u3057\u307e\u3059\u3002<\/li>\n<li>openafterpublish&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>True<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u51fa\u529b\u5f8c\u306b\u3001\u5bfe\u5fdc\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u958b\u304d\u307e\u3059\u3002<strong>False<\/strong>\uff08\u65e2\u5b9a\u5024\uff09\u3092\u6307\u5b9a\u3059\u308b\u3068\u51fa\u529b\u306e\u307f\u3067\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<\/li>\n<li>fixedformatextclassptr&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>FixedFormatExt \u30af\u30e9\u30b9<\/strong>\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u3067\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<p class=\"caution4\">\u51fa\u529b\u5148\u306b\u540c\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u65e2\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4e0a\u66f8\u304d\u3055\u308c\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>ExportAsFixedFormat \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"ExportAsFixedFormat \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_ExportAsFixedFormat()\r\n\r\n    Dim FName As String\r\n    \r\n    FName = CreateObject(\"WScript.Shell\").SpecialFolders(\"Desktop\") & \"\\Test.pdf\"\r\n\r\n    ActiveWorkbook.ExportAsFixedFormat _\r\n        Type:=xlTypePDF, FileName:=FName, OpenAfterPublish:=True\r\n    \r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/exportasfixedformat01.jpg?ssl=1\" rel=\"lightbox[4096]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/exportasfixedformat01.jpg?resize=580%2C357&#038;ssl=1\" alt=\"ExportAsFixedFormat \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" width=\"580\" height=\"357\" class=\"alignnone size-large wp-image-4099\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/exportasfixedformat01.jpg?resize=580%2C357&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/exportasfixedformat01.jpg?resize=400%2C246&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/exportasfixedformat01.jpg?w=1149&amp;ssl=1 1149w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>ExportAsFixedFormat \u30e1\u30bd\u30c3\u30c9 \u30d6\u30c3\u30af\u3084\u30b7\u30fc\u30c8\u306e\u5185\u5bb9\u3092 PDF &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4155,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[357],"tags":[367,632,270,631,63,363,38,360],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/exportasfixedformat01-580x3571.jpg?fit=580%2C357&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-144","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4096"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=4096"}],"version-history":[{"count":4,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4096\/revisions"}],"predecessor-version":[{"id":4154,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4096\/revisions\/4154"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/4155"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=4096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=4096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=4096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}