Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>



Copying a grid as image on the clipboard
Following code copies TAdvStringGrid as an image on the clipboard:
var bmp: TBitmap; clip: TClipboard; begin bmp := tbitmap.create; bmp.Width := advstringgrid1.Width; bmp.Height := advstringgrid1.Height; AdvStringGrid1.PaintTo(bmp.Canvas,0,0); clip := TClipboard.Create; clip.Assign(bmp); bmp.Free; clip.Free; end;