Click here to Skip to main content
16,020,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All
I want to import Image to the Crystal Report without using the Database

for Example , I access to the TextObject Control in Crystal report :

C#
rpt_Agent_keshvari rptagen = new rpt_Agent_keshvari();  //Crystal Report File
((CrystalDecisions.CrystalReports.Engine.TextObject)rptagen.ReportDefinition.Sections["Section3"].ReportObjects["Text2"]).Text = "Agent";
crystalReportViewer1.ReportSource = rptagen;


But I Can't Access to the picturebox object that I inserted in Crystal Report
rpt_Agent_keshvari rptagen = new rpt_Agent_keshvari(); //Crystal Report File that i Created
picturebox1.image = rptagen.ReportDefinition.Sections["section3"].ReportObjects["picture3"]).image;//wrong

tnx
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900