Well, many may think or looking for resize image in Crystal Report 9. Here is some hints and code that may help. Hopefully you can understand after go thru simple sample code.
1 pixel should be equal to 15 twips in Crystal Report.
int LogoWidth = 100;
int LogoHeight = 80;
reportdocument.Load("abc.rpt");
reportdocument.SetDataSource(myDataTable);
reportdocument.Section2.ReportObjects["LogoImage1"].Width = LogoWidth * 15;
reportdocument.Section2.ReportObjects["LogoImage1"].Height = LogoHeight * 15;
CrystalReportViewer.ReportSource = reportdocument;
No comments:
Post a Comment