|  | 
	                
  
    |  |  
    | 
        
        ถามเรื่อง Crystal Report เปลี่ยน ค.ศ เป็น พ.ศ. ใน C#  Windows 7     |  
    |  |  
 
              
  
    | 
 
 
 
        
          |  |  |  |  |  
          |  |  | 
            
              | ค่าเดือนได้แล้วทีนี้ ปีมันไม่ออกซ่ะงั้น  ไม่ทราบว่าผิดตรงไหน ช่วยดูหน่อยครับ  
 หัวหน้าตามงานแล้ว เหอๆๆ  ขอบคุณอีกคครั้งครับ
 
 Formula
 
 Local dateVar d;
 if(Year (PrintDate) > 2500)  then
 d := Date (Year (PrintDate)+543,Month (PrintDate) ,Day (PrintDate) )
 else if (Year (PrintDate) < 2500)  then
 d := Date (Year (PrintDate), Month (PrintDate) ,Day (PrintDate) )
 else d :=  PrintDate;
 
 Local StringVar y;
 y:= Totext(d,"dd MM yyyy");
 if(mid(y,4,2)="01") then
 
 Replace (y," 01 "," มกราคม ")
 else if(mid(y,4,2)="02") then
 Replace (y," 02 "," กุมภาพันธ์ ")
 else if(mid(y,4,2)="03") then
 Replace (y," 03 "," มีนาคม ")
 else if(mid(y,4,2)="04") then
 Replace (y," 04 "," เมษายน ")
 else if(mid(y,4,2)="05") then
 Replace (y," 05 "," พฤษภาคม ")
 else if(mid(y,4,2)="06") then
 Replace (y," 06 "," มิถุนายน ")
 else if(mid(y,4,2)="07") then
 Replace (y," 07 "," กรกฎาคม ")
 else if(mid(y,4,2)="08") then
 Replace (y," 08 "," สิงหาคม ")
 else if(mid(y,4,2)="09") then
 Replace (y," 09 "," กันยายน ")
 else if(mid(y,4,2)="10") then
 Replace (y," 10 "," ตุลาคม ")
 else if(mid(y,4,2)="11") then
 Replace (y," 11 "," พฤศจิกายน ")
 else if(mid(y,4,2)="12") then
 Replace (y," 12 "," ธันวาคม ")
 else
 y:= Totext(d,"dd MM yyyy");
 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            2011-07-29 13:15:12 | By :
                            AoFzaIT |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  
 
        
          |  |  |  |  |  
          |  |  | 
            
              |   ได้แล้วขอบคุณครับ เส้นผมบังภูเขา ช่องไม่ใหญ่พอ 55555 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            2011-07-29 14:00:36 | By :
                            AoFzaIT |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  
 
        
          |  |  |  |  |  
          |  |  | 
            
              | Function นี้จะมีปัญหาวันที่ 29 ก.พ. อ่ะลองทดสอบดูนะครับ 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            2012-08-31 15:22:14 | By :
                            tokky |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  
 
        
          |  |  |  |  |  
          |  |  | 
            
              | เพิ่ง เริ่มต้นเรียนรู้ เรื่อง crystal report  ได้สร้าง crystal report บน window xp  ออก report ในเครื่องที่เป็น window 7 ไม่ได้ มีวิธีแก้ไขมั้ย 
 |  
              |  |  |  |  
          |  |  |  |  |  |  |