|
|
|
จะเอารูปใน store procedure ไป show ใน crystal report ได้ยังงัยหรอคับ |
|
|
|
|
|
|
|
Code (C#)
//*** for Logo Sub Report (Start) ***'
DataTable dtLogo = new DataTable("logo");
DataRow dr = null;
dtLogo.Columns.Add(new DataColumn("Logo", typeof(System.Byte[])));
dtLogo.Columns.Add(new DataColumn("Company", typeof(string)));
FileStream fiStream = new FileStream(Server.MapPath("Images/thaicreate.jpg"), FileMode.Open);
BinaryReader binReader = new BinaryReader(fiStream);
byte[] pic = {};
pic = binReader.ReadBytes((int)fiStream.Length);
dr = dtLogo.NewRow();
dr["Logo"] = pic;
dr["Company"] = "ThaiCreate.Com Co,. LTD";
dtLogo.Rows.Add(dr);
fiStream.Close();
binReader.Close();
//*** for Logo Sub Report (End) ***'
Go to : สร้าง Sub Report (Subreport) บน Crystal Report แบบ Step by Step (VB.NET /C#)
Go to : ASP.NET แสดงรูปภาพ Image บน Crystal Report แบบ Step by Step (VB.NET / C#)
|
|
|
|
|
Date :
2013-05-14 12:27:56 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|