Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving RTF text to Word document
Message
De
08/02/2002 17:55:29
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
 
 
À
01/02/2002 16:19:06
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00584887
Message ID:
00617778
Vues:
31
>Alexander -
>


i tried the inverse .... tried to get the clipboard data with the following:
  IF ( OpenClipboard(0) != 0 )
    cf = RegisterClipboardFormat("Rich Text Format")
    h = GetClipBoardData(cf)
    ptr = GlobalLock(h)
    str_RTF = REPLICATE(' ',4096)      
    lstrcpy(str_RTF , ptr)
    CloseClipboard()
    GlobalUnlock(h)
    GlobalFree(h)
    THIS.TEXTRTF = str_RTF
  ENDIF
i get an error "datatype mismatch on the LSTRCPY statment.
can you point me to an example of the correct way to do this ?
or point out what i'm doing wrong here. (all variables are declared
as in your original example).

thanks,
patrick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform