Append logo to export

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
dire
User
Posts: 41

Append logo to export

Post 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
}


motfs
User
Posts: 258

Post 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
}


Post Reply