By default, ASPxGridViewExporter does not provide methods or properties for setting images as a header or footer for the resulting report.
This example illustrates how to print ASPxGridView with an additional header with a text and an image by using CompositeLink.
See also:
How to display images in the Header and Footer sections when exporting ASPxGridView
Example Comments
Added By: Túlio Calazans at: 4/9/2013 3:27:01 PM
I used this code changing a part to export to others formats ( pdf, xls, rtf, xlxs ).
But I got an error when I open the XLSX exported file.
I change a part of the code to do this:
compositeLink.PrintingSystem.ExportToPdf(stream);
WriteToResponse("filename", true, "pdf", stream);
TO
compositeLink.PrintingSystem.ExportToXlsx(stream);
WriteToResponse("filename", true, "xlsx", stream);
XLSX Error: unreadable content.