Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to display images and text in the Header and Footer sections when exporting ASPxGridView by using CompositeLink

$
0
0

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>