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

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

19 Views

Following is the code I referenced.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do

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.