{"id":8702,"date":"2017-07-24T09:00:13","date_gmt":"2017-07-24T00:00:13","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=8702"},"modified":"2017-07-24T10:03:44","modified_gmt":"2017-07-24T01:03:44","slug":"pdfmaker%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%92pdf%e5%8c%96%e3%81%99%e3%82%8boutlook%e3%83%9e%e3%82%af%e3%83%ad","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=8702","title":{"rendered":"PDFMaker\u30a2\u30c9\u30a4\u30f3\u3092\u5229\u7528\u3057\u3066\u30e1\u30fc\u30eb\u3092PDF\u5316\u3059\u308bOutlook\u30de\u30af\u30ed"},"content":{"rendered":"<p>Acrobat\u306eOutlook\u7528COM\u30a2\u30c9\u30a4\u30f3(Acrobat PDFMaker Office COM Addin)\u3092\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">CreatePDFFromEntryID<\/span>\u300d\u3068\u3044\u3046\u3001\u3044\u304b\u306b\u3082\u30a2\u30a4\u30c6\u30e0\u306e<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/office\/ff868618.aspx\" title=\"EntryID \u304a\u3088\u3073 StoreID \u306e\u4f7f\u7528\" target=\"_blank\">EntryID<\/a>\u3092\u6e21\u305b\u3070PDF\u5316\u3057\u3066\u304f\u308c\u305d\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u3055\u3063\u305d\u304f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Public Sub Sample()\r\n'\u9078\u629e\u4e2d\u306e\u30e1\u30fc\u30eb\u3092PDF\u5316\r\n  CreatePdfUsingPDFMaker Application.ActiveExplorer.Selection.Item(1).EntryID, _\r\n                         False, _\r\n                         &quot;C:\\Test\\SamplePDF.pdf&quot;\r\nEnd Sub\r\n\r\nPrivate Sub CreatePdfUsingPDFMaker(ByVal ItemEntryID As String, _\r\n                                   ByVal IsFolder As Long, _\r\n                                   ByVal OutPdfPath As String)\r\n'Acrobat PDFMaker Office COM Addin\u3092\u4f7f\u7528\u3057\u3066PDF\u51fa\u529b\r\n  Dim ad As COMAddIn\r\n  Dim pdfm As Object 'PDFMOUTLOOKLib.PDFMaker\r\n  \r\n  Set pdfm = Nothing '\u521d\u671f\u5316\r\n  For Each ad In Application.COMAddIns\r\n    If LCase(ad.ProgId) = &quot;pdfmoutlook.pdfmoutlook&quot; Then\r\n      Set pdfm = ad.Object\r\n      Exit For\r\n    End If\r\n  Next\r\n  If pdfm Is Nothing Then\r\n    MsgBox &quot;PDFMaker\u30a2\u30c9\u30a4\u30f3\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002&quot; &amp; vbNewLine &amp; _\r\n           &quot;\u51e6\u7406\u3092\u4e2d\u6b62\u3057\u307e\u3059\u3002&quot;, vbExclamation + vbSystemModal\r\n    Exit Sub\r\n  End If\r\n  pdfm.CreatePDFFromEntryID ItemEntryID, IsFolder, OutPdfPath\r\nEnd Sub<\/pre>\n<p>\u4e0a\u8a18\u30de\u30af\u30ed\u3067PDF\u5316\u3057\u305fPDF\u304c\u30b3\u30c1\u30e9\u2193<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/CreatePDFFromEntryID_01.jpg\" alt=\"\" width=\"525\" height=\"458\" class=\"alignnone size-full wp-image-8703\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/CreatePDFFromEntryID_01.jpg 525w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/CreatePDFFromEntryID_01-300x262.jpg 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>COM\u30a2\u30c9\u30a4\u30f3\u5074\u3067\u4f55\u3089\u304b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u4ee5\u964d\u306e\u51e6\u7406\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3059\u304c\u3001\u5927\u4f53\u306f\u4e0a\u624b\u304fPDF\u5316\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"Acrobat\u306eOutlook\u7528COM\u30a2\u30c9\u30a4\u30f3(Acrobat PDFMaker Office COM Addin)\u3092\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u300cCreatePDFFromEntryID\u300d\u3068\u3044\u3046\u3001\u3044\u304b\u306b\u3082\u30a2\u30a4\u30c6\u30e0\u306eEntryID\u3092\u6e21 [&hellip;]","protected":false},"author":1,"featured_media":7124,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[PDFMaker\u30a2\u30c9\u30a4\u30f3\u3092\u5229\u7528\u3057\u3066\u30e1\u30fc\u30eb\u3092PDF\u5316\u3059\u308bOutlook\u30de\u30af\u30ed]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,68],"tags":[],"class_list":["post-8702","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-outlook"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Outlook.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-2gm","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8702"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8702\/revisions"}],"predecessor-version":[{"id":8704,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8702\/revisions\/8704"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7124"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}