当前位置:编程学习 > C#/ASP.NET >>

怎么水晶报表里加固定路径的图片

如题。。要用某一固定路径里的图来当报表标题,怎么调用路径在报表加上图片 --------------------编程问答-------------------- 我是通过数据库方式实现的,定义一个字段(pic),把这个字段放在报表头,
    
     Dim fs As New FileStream("c:\xxx.jpg", FileMode.Open)   ' 获取文本流 
     Dim br As New BinaryReader(fs)    
    
   Dim table As New DataTable
     table.Columns.Add("pic", Type.GetType("System.Byte[]"))
     table.Rows.Add(br.ReadBytes(br.BaseStream.Length))
     
      Dim cr As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalReport1
      cr.SetDataSource(table)
        
补充:.NET技术 ,  VB.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,