How can you format a picture inserted in a page header? If I just use PageSetup.addPicture the picture is a big as the whole page. How can I set the size for this picture?
(I’m currently evaluating Aspose.Cells for Java)
This message was posted using Page2Forum from Setting Headers and Footers - Aspose.Cells for .NET and Java
Hi,
Thanks for your inquiry.
We will soon provide a version that will support to modify width/height of the inserted picture.
Thank you.
Hi,
Thank you for considering Aspose.
Please try the attached latest fix of Aspose.Cells. We have provided a new method for PageSetup: getPicture(boolean isHeader, int section) to get the picture added to header/footer by using PageSetup.addPicture(boolean isHeader, int section,…) method.
Please see following sample code to change the size of the picture added to header/footer,
Picture pic = setup.getPicture(true, 0);
if(pic != null)
{
pic.setWidth(100);
pic.setHeight(30);
}
Thank You & Best Regards,
The issues you have found earlier (filed as 9174) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.