C# - 使用文件路径在Crystal Report中查看图像

时间:2015-09-15 06:32:58

标签: c# crystal-reports

我已经使用C#创建了“拍照并保存照片”。保存过程是当用户提交数据时,savefiledialog将触发响应。然后它将保存在编码路径上

$ fab dep
[XXX.XXX.XXX.XXX] Executing task 'dep'
[XXX.XXX.XXX.XXX] sudo: supervisorctl restart web
[XXX.XXX.XXX.XXX] out: sudo password:
[XXX.XXX.XXX.XXX] out: web: ERROR (not running)
[XXX.XXX.XXX.XXX] out: web: ERROR (abnormal termination)
[XXX.XXX.XXX.XXX] out: 

[XXX.XXX.XXX.XXX] sudo: supervisorctl stop web
[XXX.XXX.XXX.XXX] out: sudo password:
[XXX.XXX.XXX.XXX] out: FAILED: attempted to kill web with sig SIGTERM but it wasn't running
[XXX.XXX.XXX.XXX] out: 

[XXX.XXX.XXX.XXX] sudo: supervisorctl start web
[XXX.XXX.XXX.XXX] out: sudo password:
[XXX.XXX.XXX.XXX] out: web: ERROR (already started)
[XXX.XXX.XXX.XXX] out: 

[XXX.XXX.XXX.XXX] sudo: supervisorctl restart web
[XXX.XXX.XXX.XXX] out: sudo password:
[XXX.XXX.XXX.XXX] out: FAILED: attempted to kill web with sig SIGTERM but it wasn't running
[XXX.XXX.XXX.XXX] out: web: ERROR (already started)
[XXX.XXX.XXX.XXX] out: 

[XXX.XXX.XXX.XXX] sudo: supervisorctl status
[XXX.XXX.XXX.XXX] out: sudo password:
[XXX.XXX.XXX.XXX] out: web                              BACKOFF    Exited too quickly (process log may have details)
[XXX.XXX.XXX.XXX] out: 


Done.

然后,将在表上插入的列值仅为“Varchar”,而“Path”值为

saveFileDialog1.InitialDirectory = @"C:\\Users\\image-path\\";

我现在可以使用PictureBox Tool以常规窗口形式查看它。我的问题是,我不知道如何使用Crystal Report表单查看它。 Crystal Report在其工具箱中没有“PictureBox”。任何帮助,请评论或回答。先感谢您。我只用了2个月就使用了C#。

1 个答案:

答案 0 :(得分:2)

类似问题已经解决here。如果您有任何其他问题,请随时提出。