05 พฤศจิกายน 2558

สร้างเลขที่บรรทัด และเปลี่ยนเลขที่ลำดับเมื่อขึ้นกลุ่มใหม่ (Crystal Report)

How To Create Row number and Change Over Group (Crystal Report)

Step1. สร้าง Running Total Field

Create New Running Total Field
Step 2. สร้าง Summarize

Create Summarize 
Running Total Name= rowNumber
field  = your id
Type of Summarize = count
reset = On Change of group
group= your group

Step 3. ลาก rowNumberไปวางที่รายงานได้เลย

Drag rowNumber into Your Report

20 กันยายน 2558

Enable Mac Address Clone In DD-WRT

วิธีเปิดให้โคลนแม็คใน DD-WRD เพื่อขยายสัญญาณ WiFi

12 กันยายน 2558

วิธีแก้ไข Windows Explorer Has Stop Working

วิธีแก้ไข Windows Explorer Has Stop Working
1. เปิด Regedit
2. ไป
HKEY_CLASS_ROOT -> * -> shellex ->contextmenuhandlers
ลบโฟลเดอร์ winrar,winrar32,7-zip ,DemonShellExtImage
3. หากยังไม่เห็นผล ให้ลองติดตั้ง Driver VGA Card ใหม่ และตรวจสอบไวรัสในเครื่อง

25 สิงหาคม 2558

ThaiLongDate Formula Field In Crystal Report

ตัวอย่าง Formula Field ที่ใช้แปลงวันที่ให้เป็นภาษาไทย ในรูปแบบ วัน เดือน ปี พ.ศ. (ตัวอย่าง 25 สิงหาคม 2558)


totext(day(PrintDate),0) + " " + (
if Month(PrintDate)=1 then "มกราคม" else
if Month(PrintDate)=2 then "กุมภาพันธ์" else
if Month(PrintDate)=3 then "มีนาคม" else
if Month(PrintDate)=4 then "เมษายน" else
if Month(PrintDate)=5 then "พฤษภาคม" else
if Month(PrintDate)=6 then "มิถุนายน" else
if Month(PrintDate)=7 then "กรกฎาคม" else
if Month(PrintDate)=8 then "สิงหาคม" else
if Month(PrintDate)=9 then "กันยายน" else
if Month(PrintDate)=10 then "ตุลาคม" else
if Month(PrintDate)=11 then "พฤศจิกายน" else
if Month(PrintDate)=12 then "ธันวาคม" else "")
+ " " + totext(if(Year(PrintDate)<2500) then Year(PrintDate)+543 else Year(PrintDate),0,"")

** อย่าลืม เปลี่ยน Font ให้เป็น Font ภาษาไทยด้วยนะครับ เช่น Angsana UPC หรือ Cordia UPC เพื่อจะได้มองเห็นอักขระภาษาไทยนะครับ****