Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > ถ้าจะติดต่อกับexcelต้องเขียนแบบนี้รึป่าวค่ะ ช่วยหน่อยนะค่ะ เครียดมาก!! ติดมา3วันแล้ว



 

ถ้าจะติดต่อกับexcelต้องเขียนแบบนี้รึป่าวค่ะ ช่วยหน่อยนะค่ะ เครียดมาก!! ติดมา3วันแล้ว

 



Topic : 026430



โพสกระทู้ ( 64 )
บทความ ( 0 )



สถานะออฟไลน์




อันนี้โค้ดที่เขียนค่ะ
Quote:
$strExcelFileName = "บัญชีแสดงวันลาของข้าราชการครูและลูกจ้างประจำ.xls";
header("Content-Type: application/x-msexcel; name=\"$strExcelFileName\"");
header("Content-Disposition: inline; filename=\"$strExcelFileName\"");
header("Pragma: no-cache");
?>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=tis-620" />


</head>
<body>
<table x:str border=2 width=1200>
<tr>
<td width="900" class=xl2216681 nowrap ><strong><center>บัญชีแสดงวันลาของข้าราชการครูและลูกจ้างประจำ ประจำปีงบประมาณ2552</center></strong><td>
</tr>
<tr>
<td width="900" class=xl2216681 nowrap><strong><center>โรงเรียนสะเดา"ขรรค์ชัยกัมพลานนท์อนุสรณ์" อำเภอสะเดา สำนักงานเขตพื้นที่การศึกษาสงขลา เขต3</center></strong><td>
</tr>
<tr>
<td><strong><center>ตั้งแต่วันที่ 1 เมษายน 2552 ถึง วันที่ 1 ตุลาคม 2553</center></strong><td>
</tr>
</table>
<div id="SiXhEaD_Excel" align=center x:publishsource="Excel">
<table x:str border=2 width=100% >
<tr border=2>
<td class=xl2216681 nowrap><strong>ที่</strong></td>
<td width="80" class=xl2216681 nowrap><strong>ชื่อ-สกุล</strong></td>
<td width="80" class=xl2216681 nowrap><strong>ลาป่าย<br><table border=2><tr border=1><td border=1><center>วัน</center></td><td border=1><center>ครั้ง</center></td></tr></table></strong></td>
<td width="80" class=xl2216681 nowrap><strong>ลากิจส่วนตัว<br><table border=2><tr border=1><td border=1><center>วัน</center></td><td border=1><center>ครั้ง</center></td></tr></table></strong></td>
<td width="80" class=xl2216681 nowrap><strong>ลาคลอดบุตร<br><table border=2><tr border=1><td border=1><center>วัน</center></td><td border=1><center>ครั้ง</center></td></tr></table></strong></td>
<td width="80" class=xl2216681 nowrap><strong>ลาอุปสมบท<br><table border=2><tr border=1><td border=1><center>วัน</center></td><td border=1><center>ครั้ง</center></td></tr></table></strong></td>
<td width="80" class=xl2216681 nowrap><strong>ขาด<br><table border=2><tr border=1><td border=1><center>วัน</center></td><td border=1><center>ครั้ง</center></td></tr></table></strong></td>
<td width="80" class=xl2216681 nowrap><strong>สาย<br><table border=2><tr border=1><td border=1><center>วัน</center></td><td border=1><center>ครั้ง</center></td></tr></table></strong></td>
<td width="80" class=xl2216681 nowrap><strong>หมายเหตู</strong></td>
</tr>


แล้วถ้าต้องการในแบบนี้ต้องเขียนยังไงค่ะ


รูปภาพ



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2009-04-19 16:13:59 By : Pizz View : 2710 Reply : 5
 

 

No. 1



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

แบบนี้ก็สามารถทำได้เช่นเดียวกันครับ






Date : 2009-04-19 17:39:45 By : webmaster
 


 

No. 2



โพสกระทู้ ( 64 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ


แล้วถ้าต้องการผสานเซลล์ต้องเขียนโค้ดยังไงค่ะ
Date : 2009-04-19 20:36:58 By : Pizz
 

 

No. 3



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ถ้าแบบนั้นอาจจะต้องใช้ผ่าน COM แล้วน่ะครับ

PHP Excel (Excel.Application)
Date : 2009-04-19 21:52:18 By : webmaster
 


 

No. 4



โพสกระทู้ ( 64 )
บทความ ( 0 )



สถานะออฟไลน์


ก้อไม่เข้าจัยอยู่ดีอ่ะค่ะ

ว่าต้องเริ่มจากตงไหน
Date : 2009-04-19 22:49:32 By : Pizz
 


 

No. 5



โพสกระทู้ ( 64 )
บทความ ( 0 )



สถานะออฟไลน์


ลองเอาตัวอย่างไปรันดูแล้วอ่ะค่ะมันแสดงerrorแบบนี้ทุกหน้าเรยค่ะ
Quote:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in c:\appserv\www\letters\merge.php on line 30

Date : 2009-04-19 22:59:28 By : Pizz
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ถ้าจะติดต่อกับexcelต้องเขียนแบบนี้รึป่าวค่ะ ช่วยหน่อยนะค่ะ เครียดมาก!! ติดมา3วันแล้ว
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 01
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่