@webguy22 wrote:
For example, if I do a toolbar Copy and manually paste into a email, it formats fine:
1976 Cleveland Indians At 1976 Oakland Athletics 4/8/1976
Indians......... 0 0 1 0 0 0 0 0 0 - 1 7 0
Athletics....... 1 0 1 0 0 1 0 0 x - 3 6 0But if I do a GetClipboardText to store into a variable and call the email client, the clipboard formatting is lost:
1976 Cleveland Indians At 1976 Oakland Athletics 4/8/1976 Indians......... 0 0 1 0 0 0 0 0 0 - 1 7 0Athletics....... 1 0 1 0 0 1 0 0 x - 3 6 0
procedure AutoSendMail;
Var
B: String;
S: String;
M: String;
begin
NavigateCommand(4); // Select All
NavigateCommand(3); // Copy
S := "mailto:?body=";
B := GetClipboardText();
M := S+B;
OpenFile(M, "", SW_SHOWNORMAL);
end;
Posts: 1
Participants: 1