Skip to main content

FooterLogo

Definition​

Namespace: Surya.Ab.Export.Client.Models
Assembly: Surya.Ab.Export.dll

Provides ways to create footer with ClientLogo image in Excel/PDF.

public class FooterLogo

Properties​

NameDefinition
LogoImageRepresents ClientLogo image for the footer.
ColOffsetTo alter the default position of image in the footer.
RowOffsetTo alter the default position of image in the footer.

Structure​

public class FooterLogo
{
public AbImage LogoImage { get; set; }

public FooterLogo(AbImage logoImage)
{
LogoImage = logoImage;
}

public FooterLogo(AbImage logoImage, long colOffSet, long rowOffSet)
{
LogoImage = logoImage;
ColOffset = colOffSet;
RowOffset = rowOffSet;
}

public long ColOffset { get; set; } = 0;

public long RowOffset { get; set; } = 0;
}

Example​

var exportOption = new ExportOptions()
{
// PDF
PdfOptions = new PdfOptions()
{
ClientLogo = DemoImageModel.GetDemoFooterLogo()
}

// Excel
SpreadsheetOptions = new List<SpreadsheetOption>()
{
new SpreadsheetOption()
{
ClientLogo = DemoImageModel.GetDemoFooterLogo()
}
}
};

internal static FooterLogo GetDemoFooterLogo()
{
AbImage logoImage = new AbImage(File.ReadAllBytes("..\\HDFC_Bank.png"), AbImageType.Png)
{
Height = 20,
Width = 20,
};

return new FooterLogo(logoImage);
}

ClientLogoFooter


Edit on GitHub