Append logo to export

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.

Append logo to export

Postby dire » Sat Jan 06, 2018 7:30 pm

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
}
dire
 
Posts: 34
Joined: Mon Sep 26, 2016 7:53 pm

Re: Append logo to export

Postby motfs » Mon Jan 08, 2018 10:05 am

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
}
motfs
 
Posts: 710
Joined: Tue Sep 08, 2015 4:55 pm


Return to General Discussion (ASP.NET Maker)