The following example demonstrates how to add an image to a link's image collection returned by the Link.Images property, and display this image and the time the report was created, in the right section of the report's page header.

C# |
using DevExpress.Utils;
using DevExpress.XtraPrinting;
using DevExpress.XtraPrintingLinks;
((Link)printingSystem1.Links[0]).Images.Add(Image.FromFile("..\\..\\omela.png"));
PageHeaderArea pgHArea=new PageHeaderArea();
pgHArea.Content.AddRange(new string[] { "", "", "[Time Printed][Image 0]" });
printingSystem1.Links[0].PageHeaderFooter=new PageHeaderFooter(pgHArea,null);
((Link)printingSystem1.Links[0]).ShowPreview();
|
VB |
Imports DevExpress.Utils
Imports DevExpress.XtraPrinting
Imports DevExpress.XtraPrintingLinks
CType(printingSystem1.Links(0), Link).Images.Add(Image.FromFile("..\..\omela.png"))
Dim pgHArea As PageHeaderArea = New PageHeaderArea()
pgHArea.Content.AddRange(New String() { "", "", "[Time Printed][Image 0]" })
printingSystem1.Links(0).PageHeaderFooter = New PageHeaderFooter(pgHArea,Nothing)
CType(printingSystem1.Links(0), Link).ShowPreview()
|

See Also