{"id":2117,"date":"2015-03-11T17:38:24","date_gmt":"2015-03-11T09:38:24","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2117"},"modified":"2015-03-11T17:38:24","modified_gmt":"2015-03-11T09:38:24","slug":"fastreport-2007%e4%b8%8b%e5%af%bc%e5%87%ba-xml-%e6%a0%bc%e5%bc%8f%e7%9a%84-xsl-%e6%96%87%e4%bb%b6%e6%97%b6%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2117","title":{"rendered":"FastReport 2007\u4e0b\u5bfc\u51fa XML \u683c\u5f0f\u7684 XSL \u6587\u4ef6\u65f6\u4e2d\u6587\u4e71\u7801\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p>\u627e\u5230 frxExportXML.pas \uff0c\u4fee\u6539 TfrxXMLExport.ExportPage(Stream: TStream) \u51fd\u6570\u4e2d\u7684\u4e24\u4e2a\u5730\u65b9\uff1a<\/p>\n<p>1\u3001\u5c06\u5b57\u7b26\u4e32 s \u7684\u5b9a\u4e49\u7531 WideString \u00a0\u6539\u4e3a Utf8String\u3002<\/p>\n<p>2\u3001\u627e\u5230\u4e0b\u9762\u7684\u884c\uff0c\u5c06\u5176\u4e2d\u7684\u5b57\u4f53 EStyle.Font.Name \u6539\u4e3a\u00a0 Utf8Encode(EStyle.Font.Name)\uff1a<\/p>\n<pre class=\"lang:delphi decode:true\">WriteExpLn('&lt;Font '+\r\n          'ss:FontName=\"' + EStyle.Font.Name + '\" '+\r\n          'ss:Size=\"' + IntToStr(EStyle.Font.Size) + '\" ' +\r\n          'ss:Color=\"' + HTMLRGBColor(EStyle.Font.Color) + '\"' + sb + si + su + '\/&gt;');<\/pre>\n<p>\u4e2d\u5b57\u4f53\u540d\u79f0\u9700\u8981\u7528 Utf8 \u7f16\u7801\u4e0b\uff1a<\/p>\n<pre class=\"lang:delphi decode:true\">WriteExpLn('&lt;Font '+\r\n          'ss:FontName=\"' + Utf8Encode(EStyle.Font.Name) + '\" '+\r\n          'ss:Size=\"' + IntToStr(EStyle.Font.Size) + '\" ' +\r\n          'ss:Color=\"' + HTMLRGBColor(EStyle.Font.Color) + '\"' + sb + si + su + '\/&gt;');<\/pre>\n<p>OK\uff0c\u73b0\u5728\u4e71\u7801\u7684\u95ee\u9898\u89e3\u51b3\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u627e\u5230 frxExportXML.pas  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2117","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":3774,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2117"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2117\/revisions"}],"predecessor-version":[{"id":2118,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2117\/revisions\/2118"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}