<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chaiyaporn Sant on Medium]]></title>
        <description><![CDATA[Stories by Chaiyaporn Sant on Medium]]></description>
        <link>https://medium.com/@chaiyaporn.sant?source=rss-d14700acff9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jcj8Q4WykqqyR6JGKXdhuw@2x.jpeg</url>
            <title>Stories by Chaiyaporn Sant on Medium</title>
            <link>https://medium.com/@chaiyaporn.sant?source=rss-d14700acff9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:21:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chaiyaporn.sant/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[แชร์ไฟล์ระหว่าง Desktop และ Mobile ด้วย Microsoft Edge: Drop]]></title>
            <link>https://medium.com/@chaiyaporn.sant/%E0%B9%81%E0%B8%8A%E0%B8%A3%E0%B9%8C%E0%B9%84%E0%B8%9F%E0%B8%A5%E0%B9%8C%E0%B8%A3%E0%B8%B0%E0%B8%AB%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%87-desktop-%E0%B9%81%E0%B8%A5%E0%B8%B0-mobile-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-microsoft-edge-drop-ac996851f89d?source=rss-d14700acff9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac996851f89d</guid>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[microsoft-edge]]></category>
            <category><![CDATA[drop]]></category>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Chaiyaporn Sant]]></dc:creator>
            <pubDate>Sat, 15 Jul 2023 07:49:42 GMT</pubDate>
            <atom:updated>2023-07-15T07:49:42.256Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pUuPay_FUOxijh6vcsMtew.png" /></figure><p>สวัสดีครับ วันนี้ผมมานำเสนอวิธีที่เราจะแชร์ไฟล์จากอุปกรณ์นึงไปอีกอุปกรณ์นึงกัน ซึ่งการแชร์ไฟล์ในลักษณะนี้ก็มีอยู่หลากหลายวิธี ไม่ว่าจะเป็นแปะใน Chat ตาม Platform ต่าง ๆ เก็บไว้ใน Cloud Drive ต่าง ๆ ซึ่งก็สามารถเลือกใช้ได้เลยตามความสะดวก</p><p>โดยใน Post นี้ผมจะพาทุกคนมารู้จัก <strong>“Drop”</strong> ซึ่ง Feature นึงที่ให้บริการใน Browser Microsoft Edge</p><h3>#Drop คืออะไร?</h3><p>Drop ถูกสร้างขึ้นมาเพื่อให้เราสามารถแชร์ไฟล์ หรือ โน็ตของเราได้ด้วยวิธีง่ายด้วยการลากวางในขณะที่เราใช้งาน Edge โดยเจ้า Drop จะอยู่ตรง <a href="https://www.thurrott.com/cloud/271268/microsoft-edge-sidebar-office-games"><strong>Sidebar</strong></a> ของหน้าต่าง Edge นั้นเอง <em>(เรื่องของ Sidebar เดี๋ยวจะมาเล่าเพิ่มเติมอีกทีให้ Post ถัด ๆ ไป)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JiY1B9ZTMzwgNRQLa2DkXQ.png" /><figcaption>Drop ใน Desktop</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*qrHnT74hWi0LAHi6AQEdFQ.png" /><figcaption>Drop ใน Mobile</figcaption></figure><h3>#การใช้งาน Drop</h3><p>การใช้งาน Drop จริง ๆ ก็ไม่มีอะไรมากครับ เราสามารถทำได้โดยการลากไฟล์ที่ต้องการมาวางที่ Drop หรือ จะกด Upload จาก Drop โดยตรงก็ได้ ทำแค่นี้เราก็สามารถ Download ไฟล์ของเราผ่านอุปกรณ์อื่นได้แล้ว</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*IhvrpqUd5cD3XLzBx9EuiQ.jpeg" /></figure><p>กรณีที่เราไม่ต้องการแชร์แล้วก็สามารถลบได้นะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*_oaBZ8PLnpXtqzZ2pve1tA.jpeg" /></figure><h3>#สิ่งควรรู้ หรือ เตรียมตัวก็ใช้ Drop</h3><p><strong>1.Drop ต้องใช้งานผ่าน Edge เท่านั้น</strong></p><p><strong>2.Edge ของเราต้องเข้าสู่ระบบด้วย E-mail เดียวกัน</strong> เช่น เราจะส่งไฟล์ผ่าน Desktop แล้วเปิดใน Mobile Edge ทั้ง Desktop และ Mobile ต้องเข้าสู่ระบบด้วย Email เดียวกัน <em>(Email เป็น Outlook นะ)</em></p><p><strong>3.ไฟล์ที่ Upload มาจะใช้พื้นที่ร่วมกับ OneDrive ของเรา</strong> โดยขนาดก็ขึ้นอยู่กับ License ของเราว่าเราใช้ Microsoft 365 License Plan ไหน <strong><em>แค่เรามี Outlook ก็ได้พื้นที่จัดเก็บฟรี 5 GB แล้วนะ</em></strong></p><p>โดยสามารถตรวจสอบพื้นที่จัดเก็บได้โดยการเข้ามาที่ <strong>Drop &gt; More options &gt; Storage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*r2jX9Zx0mumOA86zBBx5gA.jpeg" /><figcaption>Drop &gt; More options</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*f8ELrzJcRd7BqsYNksXAfQ.jpeg" /><figcaption>ตรวจสอบพื้นที่จัดเก็บ</figcaption></figure><p><strong>4.กรณีที่ Sidebar บน Desktop ไม่มี Drop แสดง</strong> ให้เราไปกดเครื่องหมาย <strong>“+”</strong> ตรง Sidebar แล้ว Turn on Drop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*RK4WbZi88Fpclbs-b8wCVQ.jpeg" /><figcaption>เปิดใช้งาน Drop</figcaption></figure><p>ก็จบแล้วครับสำหรับเรื่อง Drop ที่เป็น Feature อีกอันที่ผมคิดว่าน่าสนใจเพราะมันเอาไว้แชร์ไฟล์ข้ามอุปกรณ์กันได้ เลยคิดว่าควรเอามาแชร์ให้ทุกคนได้รู้จัก นอกจากนี้ Sidebar ของ Microsoft Edge ก็มีเครื่องมือ หรือ ลูกเล่นอื่น ๆ ที่น่าสนใจอีก เดี๋ยวไปเล่นและจะเอามาแชร์เพิ่มให้อีกครับ สุดท้ายนี้ขอขอบคุณทุก ๆ คนที่เข้ามาอ่านนะครับ 🙏</p><h3>#See more</h3><p><a href="https://www.microsoft.com/en-us/edge/features/drop?form=MT00D8">Drop (microsoft.com)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac996851f89d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[การติดตั้ง Google Fonts ใน Project Vue3 + Tailwind CSS + Flowbite]]></title>
            <link>https://medium.com/@chaiyaporn.sant/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87-google-fonts-%E0%B9%83%E0%B8%99-project-vue3-tailwind-css-flowbite-a36a2aca4ae?source=rss-d14700acff9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a36a2aca4ae</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[google-fonts]]></category>
            <category><![CDATA[flowbite]]></category>
            <dc:creator><![CDATA[Chaiyaporn Sant]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 17:08:01 GMT</pubDate>
            <atom:updated>2023-07-12T17:08:01.730Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uia36CkOE-mjDOensrzZAw.png" /></figure><p>ดีจ้า 👋 ใน Post นี้ผมจะมาแนะนำวิธีการเพิ่ม Google Fonts บน Project Vue3 + Tailwind CSS + Flowbite ซึ่ง <a href="https://vuejs.org/">Vue.js</a> ก็เป็น JavaScript Framework ที่ยอดนิยมตัวนึง แล้วรวมร่างกับความสามารถของ <a href="https://tailwindcss.com/">Tailwind CSS</a> ยิ่งเพิ่มความสามารถในการออกแบบให้เจ๋งขึ้นไปอีก ส่วน <a href="https://flowbite.com/">Flowbite</a> เป็น Tailwind CSS Components ที่เยี่ยมยอดที่ช่วยลดเวลาในการทำงาน</p><p>แต่เราอยากให้เว็บของเรามีตัวอักษรที่มีความสวยงามมากขึ้น โดยเฉพาะภาษาไทย ซึ่งแน่นอนว่า Font เดิมที่มีมันไม่ค่อยตอบโจทย์เท่าไหร่ใช่มะ</p><p>ช่ายยยยยย Google Fonts ไงล่ะพระเอกของเรา แต่ทีนี้เราจะติดตั้ง Google Font ของเรายังไงล่ะ ? ใน Post นี้มีคำตอบครับ</p><h3>#ติดตั้ง Vue Project</h3><p>เรามาติดตั้ง Vue Project ของเรากัน ลุย!!!</p><pre>npm init vue@latest</pre><p>ติดตั้งตามขั้นตอนให้เรียบร้อย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2NYNNt-bkPt-bCHE5wWQnQ.jpeg" /><figcaption>ติดตั้ง Vue เสร็จแล้ว</figcaption></figure><h3>#ติดตั้ง Tailwind CSS และ Flowbite</h3><p>หลังจากติดตั้ง Vue แล้วเรามาติดตั้ง Tailwind CSS และ Flowbite กันต่อ เริ่มต้นที่ Tailwind CSS ก่อนเลอ</p><pre>npm install -D tailwindcss postcss autoprefixer</pre><p>เสร็จแล้วใส่อีกคำสั่ง</p><pre>npx tailwindcss init -p</pre><p>ในการติดตั้ง Tailwind CSS ยังไม่จบนะครับ เพื่อไม่อยากให้สลับหน้าจอบ่อย ๆ เลยให้ติดตั้ง Flowbite ต่อเลย</p><pre>npm install flowbite</pre><p><strong>Flowbite ทดไว้ในใจก่อนนะ มาติดตั้ง Tailwind CSS กันต่อ</strong></p><p>เปิด VS code โปรเจ็ค Vue ที่เราได้ทำการติดตั้งขึ้นมากันครับ แล้วไปที่ Folder main.css <strong>(src &gt; assets &gt; main.css)</strong></p><p>ขอลบ CSS เดิมที่มีอยู่แล้วออกนะครับ แล้วก็เพิ่มคำสั่งเพื่อเรียนเครื่องมือของ Tailwind มาแทนที่</p><pre>/*main.css*/<br><br>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;<br><br>body {<br>  margin: 0;<br>}</pre><blockquote>แอบกำหนด margin ของ body ให้เป็น 0 เพื่อไม่ให้มันเผื่อขอบ</blockquote><p>ต่อมาเราจะมาแก้ไข <strong>tailwind.config.js </strong>ซึ่งขั้นตอนนี้เราจะแก้เพื่อติดตั้ง Tailwind และ Flowbite ที่เดียวเลย</p><pre>//tailwind.config.js<br><br>/** @type {import(&#39;tailwindcss&#39;).Config} */<br>module.exports = {<br>  content: [<br>    &quot;./index.html&quot;,<br>    &quot;./src/**/*.{vue,js,ts,jsx,tsx}&quot;,<br>    &#39;node_modules/flowbite/**/*.js&#39;<br>  ],<br>  plugins: [<br>      require(&#39;flowbite/plugin&#39;)<br>  ],<br>  theme: {<br>    extend: {},<br>  },<br>}</pre><p>โอเคเราติดตั้ง Tailwind CSS เสร็จและเหลือ Flowbite อีกนิด</p><p>ไปแก้ไข <strong>index.html </strong>เราจะไปเพิ่ม lib ของ Flowbite กัน (พวก Animation)</p><p>เพิ่มคำสั่งที่ Tag <strong>&lt;head&gt;</strong></p><pre>&lt;!-- index.html --&gt;<br>&lt;head&gt;<br>  ...<br>  &lt;link href=&quot;https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.css&quot; rel=&quot;stylesheet&quot; /&gt;<br>&lt;/head&gt;</pre><p>และท้ายสุดเพิ่มคำสั่งที่ Tag <strong>&lt;body&gt;</strong></p><pre>&lt;!-- index.html --&gt;<br>&lt;body&gt;<br>  ...<br>  &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.js&quot;&gt;&lt;/script&gt;<br>&lt;/body&gt;</pre><h3>#ติดตั้ง Google Fonts</h3><p>พระเอกอยู่ตรงนี้นี่เอง จริงแล้วขั้นตอนก่อนหน้าถ้าทำได้แล้ว ก็ข้ามได้เลย (มาบอกอะไรตอนนี้) อันดับแรกเลยไป ช้อปปิ้ง Font กันก่อนไปที่ <a href="https://fonts.google.com/">Browse Fonts — Google Fonts</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8aRCiDjnowjvjf0dz-uxBg.jpeg" /><figcaption>Google Fonts</figcaption></figure><blockquote>ซึ่งผมของเลือก Kanit และกัน</blockquote><p>หลังจากเลือกแล้วก็ Copy คำสั่ง Import ด้านขวามือ หรือ ดูจากรูปในกล่องสีแดง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*YvsXmdaVZ0_8YHYYyJumfQ.jpeg" /></figure><p>แล้วเอาที่ Copy ไปวางใน <strong>main.css</strong></p><pre>@import url(https://medium.com/&#39;https://fonts.googleapis.com/css2?family=Kanit:wght@200&amp;display=swap&#39;);<br><br>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;<br><br>body {<br>  margin: 0;<br>}</pre><p>เมื่อเรา Import Fonts แล้วเราต้องเอา Font ไปเพิ่มใน <strong>tailwind.config.js</strong> ซึ่งเราจะต้องเพิ่ม Font family ใหม่เข้าไป ซึ่งจะกำหนดใน “theme” ตามตัวโค้ดด้านล่าง โดยข้อมูลที่เราจะใส่ให้เอาจาก <strong>“CSS Rules to Specify families”</strong> ใน Google Fonts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*Ap-cW4TRDFNaGchxuacHyQ.jpeg" /><figcaption>CSS Rules to Specify families</figcaption></figure><pre>//tailwind.config.js<br><br>/** @type {import(&#39;tailwindcss&#39;).Config} */<br>module.exports = {<br>  content: [<br>    &quot;./index.html&quot;,<br>    &quot;./src/**/*.{vue,js,jsx}&quot;,<br>    &#39;node_modules/flowbite/**/*.js&#39;<br>  ],<br>  plugins: [<br>      require(&#39;flowbite/plugin&#39;)<br>  ],<br>  theme: {<br>    extend: {<br>      fontFamily: {<br>        &#39;kanit&#39;: [&#39;Kanit&#39;, &#39;sans-serif&#39;], //เพิ่มตรงนี้<br>      },<br>    },<br>  },<br>}</pre><p>ที่นี้เราก็ติดตั้งเสร็จเรียบร้อย</p><h3>#ทดสอบ และ การใช้งาน</h3><p>เรามาทดสอบกัน โดยผมจะสร้าง Components ใน <strong>App.vue </strong>โดยการใช้งานให้เราเพิ่ม<strong> “font-[font family]” </strong>ใน Attributes<strong> Class</strong></p><p><strong>ตัวอย่าง</strong></p><pre>&lt;p class=&quot;font-kanit&quot;&gt;Hello&lt;/p&gt;</pre><p><strong>App.vue</strong></p><pre>&lt;template&gt;<br>  &lt;div class=&quot;w-full mt-10&quot;&gt;<br>    &lt;div class=&quot;flex flex-col items-center&quot;&gt;<br><br>      &lt;!-- Normal Font--&gt;<br>      &lt;div class=&quot;max-w-sm m-6 bg-white border border-gray-200 rounded-lg shadow&quot;&gt;<br>        &lt;div class=&quot;p-5&quot;&gt;<br>          &lt;p&gt;ไม่ใช้ Google Fonts&lt;/p&gt;<br>          &lt;a href=&quot;#&quot;&gt;<br>            &lt;h5 class=&quot;mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white&quot;&gt;การติดตั้ง Google Fonts ใน<br>              Project Vue3 + Tailwind CSS + Flowbite&lt;/h5&gt;<br>          &lt;/a&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br><br>      &lt;!-- Google Font--&gt;<br>      &lt;div class=&quot;max-w-sm m-6 bg-white border border-gray-200 rounded-lg shadow&quot;&gt;<br>        &lt;div class=&quot;p-5&quot;&gt;<br>          &lt;p class=&quot;font-kanit&quot;&gt;ใช้ Google Fonts&lt;/p&gt;<br>          &lt;a href=&quot;#&quot;&gt;<br>            &lt;h5 class=&quot;mb-2 font-kanit text-2xl font-bold tracking-tight text-gray-900 dark:text-white&quot;&gt;การติดตั้ง Google Fonts ใน<br>              Project Vue3 + Tailwind CSS + Flowbite&lt;/h5&gt;<br>          &lt;/a&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><p><strong>Result</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*vaSMZ231I2M3D-3xrLdSOA.jpeg" /><figcaption>ผลลัพธ์หน้า App.vue</figcaption></figure><h3>สรุป</h3><p>ก็จบแล้วครับการเพิ่ม Google บนโปรเจ็ค Project Vue3 + Tailwind CSS + Flowbite ผมก็ขอขอบคุณที่ทนอ่านถึงตรงนี้นะครับ ถ้ามีประเด็นสงสัย หรือ อยากแนะนำสามารถสอบถามได้ครับ 🙏</p><h3>วาร์ปสำหรับข้อมูลเพิ่มเติมครับ</h3><p><a href="https://tailwindcss.com/docs/installation">Installation — Tailwind CSS</a></p><p><a href="https://flowbite.com/docs/getting-started/quickstart/">Flowbite — Quickstart</a></p><p><a href="https://fonts.google.com/">Browse Fonts — Google Fonts</a></p><p><a href="https://csstailwind.com/how-to-add-google-fonts-in-tailwindcss-complete-guide/">How to Add Google Fonts in TailwindCSS — Complete Guide (csstailwind.com)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a36a2aca4ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[การเพิ่ม Check Box ใน SSRS]]></title>
            <link>https://medium.com/@chaiyaporn.sant/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%9E%E0%B8%B4%E0%B9%88%E0%B8%A1-check-box-%E0%B9%83%E0%B8%99-ssrs-9a494ef87648?source=rss-d14700acff9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a494ef87648</guid>
            <category><![CDATA[d365-operations]]></category>
            <category><![CDATA[ssrs-reports]]></category>
            <category><![CDATA[d365]]></category>
            <category><![CDATA[ssrs]]></category>
            <category><![CDATA[d365-fo]]></category>
            <dc:creator><![CDATA[Chaiyaporn Sant]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 03:26:24 GMT</pubDate>
            <atom:updated>2023-07-12T04:14:50.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vlyEeZahEZ8muMNL6fRdbQ.png" /></figure><p>สวัสดีครับ กลับมาอีกครั้งในรอบ 1 ปี ใน Post นี้เราก็จะมาพูดถึง SSRS กันอีกเช่นเคย ตามชื่อเลยครับการเพิ่ม Check Box ใน SSRS เวลาที่มีความต้องการให้มี Check Box ใน Report เราอาจจะสร้าง Rectangle แล้วใส่ Bolder เอาซึ่งการทำแบบนี้อาจจะยุ่งยากในการจัด Design นอกจากนี้อาจจะมีเงื่อนไขในการทำงานรวมกับ Check Box ด้วยเช่น ถ้า Fields นี้มีค่าเป็น “true” จะต้องมีเครื่องหมาย 🗹 ทีนี้จะทำยังไงดี?</p><blockquote><strong>วิธีที่นำเสนอก็คือการใช้ Font ที่เป็น สัญลักษณ์นั้นเอง แต่ใน Post ผมขอใช้ Font “Wingdings” เป็นหลักนะครับ</strong></blockquote><h3>Wingdings Font คืออะไร?</h3><p>“Wingdings” เป็น Font อันนึงที่จะมีติดเครื่องคอมพิวเตอร์ ของเราอยู่แล้ว ซึ่ง “Wingdings” จะแสดงตัวอักษรเป็นสัญลักษณ์ต่าง ๆ เช่น ใน Font ปกติเราพิมพ์ “A” ใน Font Wingdings เราจะได้ “✌” อารมณ์เหมือนกำลัง Coding ด้วยภาษาประหลาด ๆ แบบในหนังเรื่อง Choose or die (2022) เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*CJYgNAhli6yALCbK_GmMWQ.jpeg" /><figcaption>Choose or die (2022)</figcaption></figure><blockquote>สัญลักษณ์ใน Post อาจจะคล้าย หรือ ไม่ตรงกับ Wingdings Font เนื่องจากใน Medium ไม่รองรับ Font นี้เลยใช้ Emoji แทน ขอโทษด้วยนะครับ 😢</blockquote><h3>เรามาเริ่มเพิ่ม Check Box กัน</h3><p>การเพิ่ม Check Box ใน Report กัน จริง ๆ แล้วอาจจะไม่ได้เพิ่มแค่ Check Box ได้อย่างเดียว และ ก็ไม่ได้ใช้ได้เพียงแค่ Font Wingdings อย่างเดียวด้วย อย่างที่บอกไปตอนเริ่มว่าเราจะใช้ Font ที่เป็นสัญลักษณ์ในการทำ (แต่ใน Post นี้จะนำเสนอแค่ Font Wingdings อย่างเดียวนะครับ)</p><p><strong>สิ่งที่ต้องรู้ก่อนที่จะใช้</strong></p><ol><li>ASCII</li></ol><p>ต้องรู้ว่า ASCII ที่เราจะใช้เป็นตัวไหน (ดูแค่ DEC ก็พอครับ) โดย Wingdings สามารถดูตารางเทียบได้ที่ <a href="http://www.alanwood.net/demos/wingdings.html">Wingdings character set and equivalent Unicode characters (alanwood.net)</a></p><p>2. ASCII Character encoding</p><p>ASCII Character encoding เป็นอะไร โดยใน Expression บน SSRS จะใช้ <strong>Windows-1252</strong></p><p>ASCII Character encoding <strong>Windows-1252 </strong>ดูได้ที่ <a href="https://www.ascii-code.com/">ASCII table — Table of ASCII codes, characters and symbols (ascii-code.com)</a></p><p><strong>หลังจากรู้ข้อมูลที่ต้องการแล้ว</strong></p><p>หลังจากเรารู้ข้อมูลแล้วเราก็มาเริ่มทำใน SSRS ของเรากันได้เลย โดยใน Post จะนำเสนอวิธีการทำทั้งหมด 2 วิธีนะครับ</p><ol><li><strong>การเขียน Expression โดยตรง</strong></li></ol><p>วิธีนี้คือการดูในตาราง Wingdings ว่าเราอยากใช้สัญลักษณ์อะไรแล้วดูรหัส ASCII ว่ามันคือตัวอะไร เช่น อยากได้สัญลักษณ์ ✌👌👍👎 ก็เปิดตารางเทียบแล้วดูว่าตัวอักษรปกติคือตัวอะไร ในกรณีนี้คือ ABCD เราก็เขียน ABCD ลงใน Expression</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*hy312AVGkLVrP7f8QTp2hA.png" /><figcaption>เขียน ABCD ลงใน Expression</figcaption></figure><p><strong>อย่าลืมเปลี่ยน Font ด้วยนะ</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*Be0uLcTJP9MRPM-BCnlNPw.png" /><figcaption>ใช้ Wingdings Font</figcaption></figure><p><strong>มาดูผลลัพธ์กัน</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*-6ZCjfj3BX4TUbiacCgJxA.png" /><figcaption>Result</figcaption></figure><p><strong>ลองเป็น Check Box ซิ๊</strong></p><p>Check Box ใน <strong>Wingdings ASCII เป็น 254 หรือ þ </strong>มันจะพิมพ์ยังไงล่ะ เราสามารถแก้ไขปัญหานี้ได้โดยการ <strong>Copy</strong> มาวางเลย แบบนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*qS8ZA5u46eAGz0qdxDo1Yw.png" /><figcaption>ใส่ Wingdings ASCII ที่เป็น Check Box ใน Expression</figcaption></figure><p>หรือการ Copy มันดูแย่ไปไม่ Cool งั้นมาใช้คำสั่ง <strong>CHR()</strong> กัน</p><h4>CHR()</h4><p>Syntax</p><pre>CHR(ASCII_DEC)</pre><p>Example</p><pre>CHR(254)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*mtaU9KLvpnOp6riUNAHM5g.png" /><figcaption>การใช้งานร่วมกับ CHR()</figcaption></figure><p><strong>มาดูผลลัพธ์กัน</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*fDwLl1hyMqk0In7MlIg5DQ.png" /><figcaption>Result</figcaption></figure><p>ก็จบแล้วครับการเพิ่ม Check Box ด้วยการเขียน Expression โดยตรง</p><p><strong>2. การเขียนแบบเงื่อนไข หรือ ใช้งานรวมกับ Function อื่น ๆ ใน Expression</strong></p><p>ตัวอย่างจะมานำเสนอนี้คือการแสดง Check Box สำหรับข้อมูลในตาราง โดยมีสถานการณ์ว่าเป็นการเช็คชื่อผู้ร่วมงานว่ามีใครมางานนี้บ้างโดย</p><p><strong>ถ้ามา</strong> จะแสดงเครื่องหมาย <strong>◻</strong></p><p><strong>ถ้าไม่มา</strong> จะแสดงเครื่องหมาย <strong>🗹</strong></p><p>เราก็สามารถใช้คำสั่ง IIF() ปกติได้เลย เช่น</p><pre>IIF(Fields!true_false.Value = &quot;True&quot;, CHR(254), CHR(168))<br>//ถ้า Field &quot;true_false&quot; มีค่าเท่ากับ &quot;True&quot; แล้วจะแสดง 🗹 ถ้าไม่จะแสดง ◻</pre><p><strong>ผลลัพธ์ที่จะได้</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*VpNH27MrD7mswzoF9MBiCA.png" /><figcaption>Result</figcaption></figure><p>ก็จบแล้วครับการเพิ่ม Check Box ด้วยการเขียนแบบเงื่อนไข หรือ ใช้งานรวมกับ Function อื่น ๆ ใน Expression</p><h3>สรุป</h3><p>เราสามารถที่จะใส่สัญลักษณ์ หรือ Check Box ลงใน Report ได้ และ สวยงาม ทำให้เราสามารถทำงานกับ Report ได้อย่าง Cool มากขึ้นโดยการใช้ Font ที่แสดงตัวอักษรเป็นสัญลักษณ์ โดยใน Post นี้จะใช้ Font Wingdings</p><p><strong>ข้อควรระวัง</strong></p><p>อย่าลืมเปลี่ยน Font ใน Textbox หรือ Tablix ที่ใช้ด้วยนะครับ</p><h3>สูตรโกงใช้งาน Check Box</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_eAtT0GtoIBypwDmc1tZeA.png" /><figcaption>สูตรโกง</figcaption></figure><p>จบแล้วครับกับเนื้อหาใน Post นี้ขอขอบคุณทุก ๆ คนที่อ่านมาถึงตรงนี้นะครับ ถ้ามีใครอยากแนะนำอะไรเพิ่มเติมสามารถบอกได้ครับ สำหรับความรู้ในการพัฒนา D365FO หรือ AX ยังยืนยันคำเดิมว่ามีค่อนข้างน้อยแต่ผมก็จะพยายามลง เช่น Post นี้มีระยะห่างจาก Post แรกประมาณ 1 ปี 555555 ให้ทุกคนได้อ่านนะครับ 🙏</p><h3>See more</h3><p><a href="https://sqlskull.com/2021/04/06/display-check-box-for-active-and-inactive-values-in-ssrs/">Display check box for active and inactive values in SSRS — SqlSkull</a></p><p><a href="https://learn.microsoft.com/en-us/office/vba/language/reference/character-sets">Character sets | Microsoft Learn</a></p><p><a href="https://en.wikipedia.org/wiki/Wingdings">Wingdings — Wikipedia</a></p><p><a href="http://www.alanwood.net/demos/wingdings.html">Wingdings character set and equivalent Unicode characters (alanwood.net)</a></p><p><a href="https://www.ascii-code.com/">ASCII table — Table of ASCII codes, characters and symbols (ascii-code.com)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a494ef87648" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Format()” expression for specific format in SSRS.]]></title>
            <link>https://medium.com/@chaiyaporn.sant/format-expression-for-specific-format-in-ssrs-c34e8eef4ba1?source=rss-d14700acff9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c34e8eef4ba1</guid>
            <category><![CDATA[d365-fo]]></category>
            <category><![CDATA[d365]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[ssrs]]></category>
            <category><![CDATA[ssrs-reports]]></category>
            <dc:creator><![CDATA[Chaiyaporn Sant]]></dc:creator>
            <pubDate>Sun, 20 Nov 2022 12:20:59 GMT</pubDate>
            <atom:updated>2023-07-12T04:31:04.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8a1iHBGAhTzEX6o60qj_w.png" /></figure><p>สวัสดีครับนี่ก็เป็น Post แรกของผม ใน Post นี้ผมจะมาแนะนำคำสั่งนึงใน SSRS Report Expression สำหรับเพื่อน ๆ ที่ได้รับ Requirements จาก Users ในการกำหนดรูปแบบพิเศษของข้อมูลใน Report SSRS ครับ</p><p>ซึ่งถ้าเป็นรูปแบบปกติเนี่ย เราสามารถที่จะกำหนดรูปแบบใน <strong>Properties</strong> ของ <strong>Textbox</strong> หรือ <strong>Tablix</strong> ได้เลย</p><p>แต่ใน Post ผมจะมาแนะนำให้ทุกคนรู้จักคำสั่ง <strong><em>“FORMAT()”</em></strong> กันครับ</p><p>ก่อนอื่นเรามารู้จักกับ <strong>Formula</strong> ของน้องกันก่อน</p><pre>FORMAT(Value, FormatStr)</pre><p>โดย <strong>Parameters</strong> สำหรับคำสั่งนี้ประกอบด้วย</p><p><strong>Value</strong> : Fields หรือ Parameters ใน Data source ที่เราต้องการแสดง</p><p><strong>FormatStr</strong> : ข้อความของรูปแบบที่ให้แสดงบน Report (ตัวอย่าง <strong>“dd/MM/yyyy”</strong>)</p><h3>วิธีการใช้งาน</h3><ol><li>เปิด Design Report ที่เรา Customize ขึ้นมาแล้วหลังจากนั้น คลิกขวา » <strong>Expression…</strong></li><li>แล้วใส่คำสั่ง <strong>“FORMAT()”</strong> ไปได้เลย</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7d8Tj8E5huwv6qJ1UFU4Xw.png" /><figcaption>ในรูปตัวอย่างผมต้องการให้เอกสารแสดงวันที่ Invoice ในรูปแบบ “dd/MM/yyyy”</figcaption></figure><h3>สรุป</h3><p>ถ้าเราแก้ไขรูปแบบที่ Text Box Properties กับ User options (ในระบบ D365FO หรือ AX2012) เพื่อให้ข้อมูลของวันที่แสดงตามรูปแบบที่เราต้องการไม่ได้แล้วการใช้ <strong><em>“FORMAT()”</em></strong> ก็เป็นอีก 1 วิธีที่สามารถทำได้</p><p><strong>แถม</strong></p><p>นอกจากนี้คำสั่ง <strong><em>“FORMAT()”</em></strong> ยังสามารถใช้กับการกำหนดรูปแบบข้อมูลอื่นๆได้ เช่น ตัวเลข เวลา ฯลฯ ดังตัวอย่าง</p><p><em>ผมกำหนดให้ : Fields QTY เป็น EDT real มีค่า 158.000000</em></p><p>ผมต้องการแสดงทศนิยม 2 ตำแหน่ง ก็สามารถเขียนคำสั่ง <strong><em>“FORMAT()” </em></strong>ได้</p><pre>FORMAT(Fields!QTY.Value,&quot;0.00;(0.00)&quot;)</pre><p>ซึ่งผลลัพท์ที่ได้ใน Report ของเราจะได้ 158.00</p><p>ผมต้องการแสดงตัวเลขในรูปแบบเปอร์เซ็นต์ ก็สามารถเขียนคำสั่ง <strong><em>“FORMAT()” </em></strong>ได้</p><pre>FORMAT(Fields!QTY.Value,&quot;0%;(0%)&quot;)</pre><p>ซึ่งผลลัพท์ที่ได้ใน Report ของเราจะได้ 158%</p><p>จบแล้วครับกับเนื้อหาใน Post นี้ขอขอบคุณทุก ๆ คนที่อ่านมาถึงตรงนี้นะครับ ถ้ามีใครอยากแนะนำอะไรเพิ่มเติมสามารถบอกได้ครับ สำหรับความรู้ในการพัฒนา D365FO หรือ AX มีค่อนข้างน้อยผมก็จะพยายามลง (เท่าที่ผมรู้ lol 5555555) ให้ทุกคนได้อ่านนะครับ</p><h3>แปะวาร์ปสำหรับคนที่ใครอยากอ่านเพิ่มเติมครับ</h3><p><strong>ข้อมูลสำหรับคำสั่ง FORMAT()</strong></p><p>SSRS — Format() Function : <a href="http://www.sql-datatools.com/2016/03/ssrs-data-representation-formats.html">http://www.sql-datatools.com/2016/03/ssrs-data-representation-formats.html</a></p><p>How to Change the Date Field Format to DD/MM/YYYY in a SSRS report : <a href="https://www.epmpartners.com.au/blog/how-to-change-the-date-field-format-to-dd-mm-yyyy-in-a-ssrs-report/">https://www.epmpartners.com.au/blog/how-to-change-the-date-field-format-to-dd-mm-yyyy-in-a-ssrs-report/</a></p><p>Formatting Columns in SSRS Reports : <a href="https://stoneridgesoftware.com/formatting-columns-in-ssrs-reports/">https://stoneridgesoftware.com/formatting-columns-in-ssrs-reports/</a></p><p><strong>ข้อมูลสำหรับ Format strings หรือ ข้อความของรูปแบบ</strong></p><p>Custom date and time format strings : <a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings">https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c34e8eef4ba1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>