|
|
|
ASP.NET เขียนข้อความลงใน cell ของ excel ต้องการให้ขึ้นบรรทัดใหม่ new line |
|
|
|
|
|
|
|
ลองดูตัวนี้ครับ
Code (VB.NET)
With xlWorkBook.ActiveSheet.Cells(1, 1)
.Value = "Name " & vbCrLf & " Lastname"
.VerticalAlignment = -4108
.HorizontalAlignment = -4108
End With
หรือ
Code (VB.NET)
With xlWorkBook.ActiveSheet.Cells(1, 1)
.Value = "Name " & Char(10) & Char(13) & " Lastname"
.VerticalAlignment = -4108
.HorizontalAlignment = -4108
End With
หรือ
Code (VB.NET)
With xlWorkBook.ActiveSheet.Cells(1, 1)
.Value = "Name " & Char(10) & " Lastname"
.VerticalAlignment = -4108
.HorizontalAlignment = -4108
End With
หรือ
Code (VB.NET)
With xlWorkBook.ActiveSheet.Cells(1, 1)
.Value = "Name " & Char(13) & " Lastname"
.VerticalAlignment = -4108
.HorizontalAlignment = -4108
End With
|
|
|
|
|
Date :
2012-03-01 13:56:28 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|