load images in Crystal Reports

微笑、不失礼 提交于 2019-12-13 03:56:08

问题


please describe How to add picture at run time in the crystal report using C#

private void LoadImage(DataRow objDataRow, 
                              string strImageField, string FilePath) 
{
   FileStream fs = new FileStream(FilePath, 
                          System.IO.FileMode.Open,  System.IO.FileAccess.Read); 
}

回答1:


use crystalrepoert.setdatasource(datatable) to load pictures in crystal report file, the image column of datatable apeears in report.

also you can you use runtime dataset like this: http://www.c-sharpcorner.com/UploadFile/saj/CrystalReports03192006090510AM/CrystalReports.aspx



来源:https://stackoverflow.com/questions/14105366/load-images-in-crystal-reports

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!