Skip to Content
Former Member
Mar 10, 2009 at 05:23 AM

How to change the size of the image inserted to report by ImportPicture()


Following is the code I referenced.

I want to know how to change the displayed size of the image on report.

Following code cannot change the size.

m_boPictureObject = boReportClientDocument.ReportDefController.ReportObjectController.ImportPicture("d:
test.jpg", m_boSection, 1, 1);

m_boPictureObject.Height = m_boPictureObject.OriginalHeight * 2;

m_boPictureObject.Width = m_boPictureObject.OriginalWidth * 2;

Note: The version of CR is CR2008 , my program is Windows Application.