{"id":2075,"date":"2007-01-24T01:00:00","date_gmt":"2007-01-23T16:00:00","guid":{"rendered":"http:\/\/keuko.exp.jp\/diary\/?p=2075"},"modified":"2007-01-24T01:00:00","modified_gmt":"2007-01-23T16:00:00","slug":"%e5%8d%b0%e5%88%b7%e3%81%97%e3%81%9f%e3%81%ae%ef%bc%9f%e5%ae%9f%e9%9a%9b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/keuko.exp.jp\/diary\/?p=2075","title":{"rendered":"\u5370\u5237\u3057\u305f\u306e\uff1f\u5b9f\u969b\uff1f"},"content":{"rendered":"<p>\u52dd\u624b\u306b\u5370\u5237\u3055\u308c\u308b\u306e\u3067\u306f\u306a\u304f\u3066\u3001\u30d7\u30ec\u30d3\u30e5\u30fc\u306b\u3057\u3066\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u81ea\u5206\u3067\u597d\u304d\u306b\u5370\u5237\u3057\u305f\u3044\u3001\u3068\u304a\u5ba2\u3055\u3093\u304c\u8a00\u3046\u306e\u3067\u3001\u305d\u3046\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u5370\u5237\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u30c7\u30fc\u30bf\u306b\u6301\u3063\u3066\u3044\u308b\u306e\u3067\uff08\u2190\u540c\u3058\u30c7\u30fc\u30bf\u3092\u4f55\u5ea6\u3082\u5370\u5237\u3057\u3066\u3057\u307e\u3046\u306e\u3092\u9632\u3050\u305f\u3081\uff09\u3001\u30d7\u30ec\u30d3\u30e5\u30fc\u306b\u3057\u3066\u3057\u307e\u3046\u3068\u305d\u308c\u304c\u53d6\u308c\u306a\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3002<br \/>\n\u3044\u3084\u30fc\u3001\u6d45\u306f\u304b\u3067\u3057\u305f\u3002<br \/>\n\u5b9f\u969b\u306b\u5370\u5237\u3057\u305f\u304b\uff08\u3042\u3001\u3053\u306e\u300c\u5370\u5237\u3057\u305f\u300d\u306f\u300c\u7d19\u3068\u3057\u3066\u6b63\u3057\u304f\u51fa\u529b\u3055\u308c\u305f\u300d\u3067\u306f\u306a\u304f\u3066\u3001\u300c\u5370\u5237\u6307\u793a\u3092\u51fa\u3057\u305f\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\uff09\u306f\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3063\u3066\u3059\u3054\u3044\u3067\u3059\u306d\u3002\uff08\u4eca\u3055\u3089\u3002\uff09<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<br \/>\n\u9069\u5f53\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3002<\/p>\n<pre>\nDeclare Function apiIsWindowEnabled Lib \"user32\" _\nAlias \"IsWindowEnabled\" (ByVal hWnd As Long) As Long\nPublic Function gIsPrinted(rpt As Report) As Boolean\nDim blnRtn  As Boolean\nblnRtn = False\nIf apiIsWindowEnabled(rpt.hWnd) = 0 Then\nblnRtn = True\nEnd If\ngIsPrinted = blnRtn\nEnd Function\n<\/pre>\n<p>\u3055\u3089\u306b\u9069\u5f53\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3002<\/p>\n<pre>\nPrivate Dim mblnIsPrinted\tAs Boolean\nPublic Sub gSetIsPrinted(byval blnIsPrinted As Boolean)\nIf blnIsPrinted = True Then\nmblnIsPrinted = True\nEnd If\nEnd Sub\nPublic Sub gClearIsPrinted()\nmblnIsPrinted = False\nEnd Sub\nPublic Function gGetIsPrinted() As Boolean\ngGetIsPrinted = mblnIsPrinted\nEnd Sub\n<\/pre>\n<p>\u30ec\u30dd\u30fc\u30c8\u306e\u30ec\u30dd\u30fc\u30c8\u30d8\u30c3\u30c0\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u6642\u30a4\u30d9\u30f3\u30c8\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3002<\/p>\n<pre>\nPrivate Sub \u30ec\u30dd\u30fc\u30c8\u30d8\u30c3\u30c0\u30fc_Format(Cancel As Integer, FormatCount As Integer)\n' \u5370\u5237\u3057\u305f\u304b\u5426\u304b\u3092\u30bb\u30c3\u30c8\nCall gSetIsPrinted(gIsPrinted(Me))\nEnd Sub\n<\/pre>\n<p>\u5370\u5237\u90e8\u5206\u3002\uff08\u4e00\u5ea6\u306b\u4e00\u3064\u306e\u30ec\u30dd\u30fc\u30c8\u3057\u304b\u5370\u5237\u3057\u306a\u3044\u3068\u3044\u3046\u524d\u63d0\u3067\u3059\u3002\uff09<br \/>\n\u5370\u5237\u3057\u305f\u3089True\u304c\u3001\u5370\u5237\u3057\u306a\u304b\u3063\u305f\u3089False\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\nPublic Function gPrintReport(ByVal strReportName As String) As Boolean\nDim blnRtn\tAs Boolean\nblnRtn = False\n' \u5370\u5237\u72b6\u614b\u3092\u521d\u671f\u5316\nCall gClearPrintInfo_IsPrinted\n' \u30d7\u30ec\u30d3\u30e5\u30fc\u3067\u958b\u304f\nCall DoCmd.OpenReport(strReportName, acViewPreview)\n' \u958b\u304b\u308c\u3066\u3044\u308b\u30ec\u30dd\u30fc\u30c8\u304c\u306a\u304f\u306a\u308b\u307e\u3067\u5f85\u3061\nDo Until Reports.Count &#60;= 0\nCall Application.Echo(True)\nDoEvents\nLoop\n' \u5370\u5237\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u53d6\u5f97\nIf gGetPrintInfo_IsPrinted() = True Then\nblnRtn = True\nEnd If\nPrintReport = blnRtn\nEnd Function\n<\/pre>\n<p>\u8ffd\u8a18\uff082007\/6\/14\uff09<br \/>\n\u300c\u958b\u304b\u308c\u3066\u3044\u308b\u30ec\u30dd\u30fc\u30c8\u304c\u306a\u304f\u306a\u308b\u307e\u3067\u5f85\u3061\u300d\u306e\u90e8\u5206\u3001SysCmd\u30e1\u30bd\u30c3\u30c9\u306e\u7b2c\u4e00\u5f15\u304d\u6570\u306bacSysCmdGetObjectState\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u958b\u3044\u3066\u308b\u304b\u3069\u3046\u304b\u5206\u304b\u308b\u3063\u307d\u3044\u306e\u3067\u3001\u305d\u308c\u3092\u5229\u7528\u3057\u3066\u9589\u3058\u308b\u307e\u3067\u5f85\u3064\u51e6\u7406\u304c\u4f5c\u308c\u307e\u3059\u3002\u305d\u3063\u3061\u306e\u65b9\u304c\u30b9\u30de\u30fc\u30c8\u3067\u3059\u306d\u3002\uff08\u3068\u3044\u3046\u304b\u3001\u5143\u306e\u304c\u3072\u3069\u3044\u3088\u3002\uff09<br \/>\n<a href=\"http:\/\/www.tsware.jp\/tips\/tips_021.htm\" target=\"_blank\">\u3053\u3053<\/a>\u304c\u305d\u306e\u3082\u306e\u305a\u3070\u308a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u52dd\u624b\u306b\u5370\u5237\u3055\u308c\u308b\u306e\u3067\u306f\u306a\u304f\u3066\u3001\u30d7\u30ec\u30d3\u30e5\u30fc\u306b\u3057\u3066\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u81ea\u5206\u3067\u597d\u304d\u306b\u5370\u5237\u3057\u305f\u3044\u3001\u3068\u304a\u5ba2\u3055\u3093\u304c\u8a00\u3046\u306e\u3067\u3001\u305d\u3046\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u5370\u5237\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u30c7\u30fc\u30bf\u306b\u6301\u3063\u3066\u3044\u308b\u306e\u3067\uff08\u2190\u540c\u3058\u30c7\u30fc\u30bf\u3092\u4f55\u5ea6\u3082\u5370\u5237\u3057\u3066\u3057\u307e\u3046\u306e\u3092\u9632<\/p>\n<p><a class=\"button\" href=\"https:\/\/keuko.exp.jp\/diary\/?p=2075\" title=\"More\">  \u7d9a\u304d\u3092\u8aad\u3080 \u2192<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-2075","post","type-post","status-publish","format-standard","hentry","category-job"],"_links":{"self":[{"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=\/wp\/v2\/posts\/2075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2075"}],"version-history":[{"count":0,"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=\/wp\/v2\/posts\/2075\/revisions"}],"wp:attachment":[{"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/keuko.exp.jp\/diary\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}