2
votes

I am using VB.NET2008 and Crystal Reports 11.5. I have created rpt in crystal reports app and created Picture Object. also gave the Graphic Location formula as follows;

{pic_path.path_name} + "\" + {reg_emp.emp_qid} + ".jpg"

pic_path.path_name and reg_emp.emp_qid has the file locationa path something as follows;

"C:\bin" + "\" + "2345" + ".jpg"

It is working fine with the report. But when I import it on VB.NET and use below code to display the rpt;

Dim cryRpt As New rpt_labor_card ' this is the rpt file
    cryRpt.SetDataSource(ds) 'ds has the all data to be displayed in report

    rpt_view.CrystalReportViewer1.ReportSource = cryRpt
    rpt_view.CrystalReportViewer1.Refresh()
    rpt_view.CrystalReportViewer1.RefreshReport()
    rpt_view.Show() 

But picture is not displaying in report and the Graphics Location is not available in Format Object > Picture.

What can I do to display picture in rpt file ?

Thank you,

Sameera

1
ok let me know are you taking the picture by code or it just static picture?PEO
dataset has the path to picture location. I have inserted picture with a default image. my problem is Graphics Location is not available inside vb.net rptSameera Silva
try to load that picture in your database and pass it to directly crystal report. And use that field directly instead of taking Graphics Object.Shell
I have already picture in my rpt. I want to change it according to dataset picture URL. also I am using VB.NET2008Sameera Silva

1 Answers

1
votes

You need to update your crystal viewer in your program. Since the graphic location is not there, there is no way to dynamically load images. I have researched this for quite a while now, and still have not come up with a solution.