Completed
Last Updated: 24 Sep 2014 09:01 by Bill
ADMIN
Kostadin
Created on: 06 Sep 2013 10:32
Category: PivotGrid
Type: Bug Report
4
FIX: Font size is not applied on the merged Excel cells when ExportInfrastructure is used.

		
2 comments
Bill
Posted on: 04 Sep 2014 19:28
The call to XlsBiffRenderer.Render() changes the value of the Cell.Style.Font.Size to 10.  Probably related to the cause, if it's of any help.
ADMIN
Daniel
Posted on: 20 Jan 2014 09:58
The problem is related to all controls that use the EI. It can also be reproduced using the EI directly as shown with the following code:

ei.ExportStructure structure = new ei.ExportStructure();
ei.Table table = new ei.Table();
structure.Tables.Add(table);
ei.Cell firstCell = table.Cells[1,1];
firstCell.Colspan = 2;
firstCell.Style.Font.Bold = true;
firstCell.Style.Font.Size = 15;
firstCell.Value = "TEST";

ei.XlsBiffRenderer renderer = new ei.XlsBiffRenderer(structure);
byte[] output = renderer.Render();
string fileName = Server.MapPath("~/test.xls");

using (FileStream fs = new FileStream(fileName, FileMode.Create))
{
    fs.Write(output, 0, output.Length);
}