Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print PDF file from VFP directly?
Message
De
28/09/2004 17:31:39
 
 
À
18/05/2004 06:06:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00904836
Message ID:
00946962
Vues:
25
>Could I print PDF file from VFP directly?
>
>TIA.

Another way to do this: (my 2 cents)

*-- the FFC that comes with 8.0 makes this easy too
*-- C:\Program Files\Microsoft Visual FoxPro 8\Ffc\_environ.vcx
*-- I subclassed this and called it bms_shellexecute.vcx

*-- drag and drop the sub-class to your form
*-- add the following code to a method call on a form
*-- this may work well because you are not defining which reader to use
*-- in your code...
LOCAL jreturn
jreturn=thisform.bms_shellexecute1.shellexecute(thisform.image1.Picture,'','print')

IF jreturn<32
   =messagebox('The Application used to print the image had a problem...  Please try again.',16,'System Message')
   
endif

return(jreturn)
Thanks,

Stacy



Black Mountain Software, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform