Spread Silverlight Documentation
FooterRightImage Property (PrintInfo)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > PrintInfo Class : FooterRightImage Property
Gets or sets the image for the right section of the footer.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property FooterRightImage As System.Byte()
'Usage
 
Dim instance As PrintInfo
Dim value() As System.Byte
 
instance.FooterRightImage = value
 
value = instance.FooterRightImage
[System.ComponentModel.DefaultValue()]
public System.byte[] FooterRightImage {get; set;}

Property Value

The image for the right portion of the printed footer. The default value is null, which means that no image is specified.
Example
This example uses the FooterRightImage property.
private byte[] StreamToBytes(System.IO.Stream stream)
        {
            byte[] bytes = new byte[stream.Length];
            stream.Read(bytes, 0, bytes.Length);
            stream.Seek(0, System.IO.SeekOrigin.Begin);
            return bytes;
        }

private void button1_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog file = new OpenFileDialog();
            if (file.ShowDialog() == true)
            {
                this.gcSpreadSheet1.ActiveSheet.PrintInfo.FooterCenterImage = StreamToBytes(file.File.OpenRead());
                this.gcSpreadSheet1.ActiveSheet.PrintInfo.FooterLeftImage = StreamToBytes(file.File.OpenRead());
                this.gcSpreadSheet1.ActiveSheet.PrintInfo.FooterRightImage = StreamToBytes(file.File.OpenRead());
                this.gcSpreadSheet1.ActiveSheet.PrintInfo.HeaderCenterImage  = StreamToBytes(file.File.OpenRead());
                this.gcSpreadSheet1.ActiveSheet.PrintInfo.HeaderLeftImage = StreamToBytes(file.File.OpenRead());
                this.gcSpreadSheet1.ActiveSheet.PrintInfo.HeaderRightImage = StreamToBytes(file.File.OpenRead());
            }
            this.gcSpreadSheet1.ActiveSheet.PrintInfo.FooterCenter = "&G";
            this.gcSpreadSheet1.ActiveSheet.PrintInfo.FooterRight = "&G";
            this.gcSpreadSheet1.ActiveSheet.PrintInfo.FooterLeft = "&G";
            this.gcSpreadSheet1.ActiveSheet.PrintInfo.HeaderCenter = "&G";
            this.gcSpreadSheet1.ActiveSheet.PrintInfo.HeaderRight = "&G";
            this.gcSpreadSheet1.ActiveSheet.PrintInfo.HeaderLeft = "&G";            
        }

private void button2_Click(object sender, RoutedEventArgs e)
        {
         SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.Filter = "PDF File (.pdf)|*.pdf";
bool? useClick = saveFileDialog.ShowDialog();
if (useClick == true)
{
    var stream = saveFileDialog.OpenFile();
gcSpreadSheet1.SavePDF(stream, 0);
 stream.Dispose();
}
        }
Private Function StreamToBytes(stream As System.IO.Stream) As Byte()
        Dim bytes As Byte() = New Byte(stream.Length - 1) {}
        stream.Read(bytes, 0, bytes.Length)
        stream.Seek(0, System.IO.SeekOrigin.Begin)
        Return bytes
    End Function

Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
        Dim file As New OpenFileDialog()
        If file.ShowDialog() = True Then
            GcSpreadSheet1.ActiveSheet.PrintInfo.FooterCenterImage = StreamToBytes(file.File.OpenRead())
            GcSpreadSheet1.ActiveSheet.PrintInfo.FooterLeftImage = StreamToBytes(file.File.OpenRead())
            GcSpreadSheet1.ActiveSheet.PrintInfo.FooterRightImage = StreamToBytes(file.File.OpenRead())
            GcSpreadSheet1.ActiveSheet.PrintInfo.HeaderCenterImage = StreamToBytes(file.File.OpenRead())
            GcSpreadSheet1.ActiveSheet.PrintInfo.HeaderLeftImage = StreamToBytes(file.File.OpenRead())
            GcSpreadSheet1.ActiveSheet.PrintInfo.HeaderRightImage = StreamToBytes(file.File.OpenRead())
        End If
        GcSpreadSheet1.ActiveSheet.PrintInfo.FooterCenter = "&G"
        GcSpreadSheet1.ActiveSheet.PrintInfo.FooterRight = "&G"
        GcSpreadSheet1.ActiveSheet.PrintInfo.FooterLeft = "&G"
        GcSpreadSheet1.ActiveSheet.PrintInfo.HeaderCenter = "&G"
        GcSpreadSheet1.ActiveSheet.PrintInfo.HeaderRight = "&G"
        GcSpreadSheet1.ActiveSheet.PrintInfo.HeaderLeft = "&G"
End Sub

Private Sub Button2_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button2.Click
Dim saveFileDialog = New SaveFileDialog()
saveFileDialog.Filter = "PDF File(.pdf)|*.pdf"
Dim useClick As Boolean = saveFileDialog.ShowDialog()
If (useClick = True) Then
Dim stream = saveFileDialog.OpenFile()
GcSpreadSheet1.SavePDF(stream, 0)
End Sub
See Also

Reference

PrintInfo Class
PrintInfo Members