We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Excel 2010 security center pops up if an image is in the header

This is more of an FYI because I am not sure if you can fix it. However, if an image is placed into the print header, Excel 2010 puts the resulting workbook into a protected state and displays a warning. Here is sample code (directly from the Aspose site) that illustrates the issue:

static void Main(string[] args)

{

Workbook workbook = new Workbook();

string logo_url = @"C:\temp\logo.jpg";

FileStream inFile;

byte[] binaryData;

inFile = new System.IO.FileStream(logo_url, System.IO.FileMode.Open, System.IO.FileAccess.Read);

binaryData = new Byte[inFile.Length];

long bytesRead = inFile.Read(binaryData, 0, (int)inFile.Length);

PageSetup pageSetup = workbook.Worksheets[0].PageSetup;

pageSetup.SetHeaderPicture(1, binaryData);

pageSetup.SetHeader(1, "&G");

pageSetup.SetHeader(2, "&A");

workbook.Save(@"C:\temp\Class3.xls");

inFile.Close();

}

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.

We will check your issue and get back to you soon.

Thank You & Best Regards,

Hi,

After conducting a test case, we have found the issue you have mentioned. We will fix it soon. Your issue has been logged into our issue tracking system with an issue id: CELLSNET-13273.

Thank you.

Hi,

<span style=“font-size: 10.5pt; font-family: “Calibri”,“sans-serif”; color: rgb(31, 73, 125);”>Please try the attached version/fix. We have fixed your mentioned issue. If you still have any problem, please feel free to contact us any time.<o:p></o:p>


Thank you.

The issues you have found earlier (filed as 13273) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.