KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to copy a form (Delphi 2007) to the clipboard as an image to paste what the user can see into a word document. The clipboard part is not really a problem. The questions is how to get a bitmap for the form. Searching has turned up multiple options. Call GetFormImage Use the PrintWindow API function that is part of the GDI+ Send a WM_PRINT message Copy the Canvas for the current form using Canvas.CopyRect I also found a component called TExcellentFormPrinter that has a solution that claims to works better than any of these options, but I don't know what method it is using. All of these options seem to have different problems. Most of the information I am finding seems to be outdated. I can't seem any good source that compares the different options with enough detail for me to make a choice. Any advice on which option to go with. I have tried these on my form and they all seem to work OK, I just trying to avoid problems down the road. Any advice on what solution to go with? Update: What Potential Problems with GetFormImage? Andreas asked what the problem is with GetFormImage. Hopefully nothing anymore, that is part of what I am trying to get an answer to. What has me concerned is so many of my search results seem to be suggesting creative alternatives to using GetFormImage. I was hoping the answers would clear up the waters a little bit. I would be rea
Tags (comma-separated)
Save Edits
Cancel