Page 1 of 1

Append logo to export

Posted: Sat Jan 06, 2018 7:30 pm
by dire

Hello,

Is maybe some easy way to add company logo to exported data, something like below (from help)

public void Page_Exported() {
if (Export == "excel")
ExportDoc.Text.Append("my footer"); // Add a footer
//Log(ExportDoc.Text); // View the whole export document for debugging
}


Re: Append logo to export

Posted: Mon Jan 08, 2018 10:05 am
by motfs

If you want to add "logo" without modifying the content, simply use Page_DataRendering server event to add "logo" (to header) or Page_DataRendered server event (to footer). Try to write your code first.

public void Page_DataRendering(ref string header) {
// Example:
//header = "your header"; // add your HTML code for the logo
}