Completed
Last Updated: 16 Nov 2015 13:41 by ADMIN
ADMIN
Dimitar
Created on: 25 Sep 2015 13:12
Category: GridView
Type: Bug Report
1
FIX. RadGridView - the GridViewPdfExport is stretching the logo in the header/footer.
To reproduce:
- Add logo in the header and export the document.

Workaround:
void exporter_HeaderExported(object sender, ExportEventArgs e)
{
    PdfEditor ed = e.Editor as PdfEditor;
    using (MemoryStream ms = new MemoryStream())
    {
        System.Drawing.Image.FromFile(@"C:\img\delete.png").Save(ms, System.Drawing.Imaging.ImageFormat.Png);
        ed.TranslatePosition(e.Rectangle.Width - 30, e.Rectangle.Y);
        ed.DrawImage(ms, new System.Windows.Size(30,30));
    }
}
0 comments