Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type to printer command won't work anymore
Message
De
30/04/2006 09:16:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/04/2006 04:33:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01117874
Message ID:
01117883
Vues:
14
>Hi all,
>
>i have used the following code to print a document :
>
>*!* DECLARE INTEGER CreateDC IN WIN32API ;
>*!* INTEGER lpszDriver, ;
>*!* STRING @ lpszDevice, ;
>*!* INTEGER lpszOutput, ;
>*!* INTEGER lpInitData
>*!* DECLARE INTEGER DeleteDC IN WIN32API INTEGER hDC
>
>*!* WITH thisform.oleControl1.Object
>*!* .SelStart = 0
>*!* .SelLength = 0
>*!* .SelPrint(nHDC)
>*!* ENDWITH
>
>But somewhere in my program this has generate a windows error. From then on the "type 'c:\something.txt'" wont work anymore. The only thing the command does is putting an output to the main vfp window. It is like vpf doesnt find the printer anymore. Sometimes i have a printerspool error. But only when i use the type command. everywhere else the printer works well.
>
>Somebody has an idea
>thnx

Instead of type to printer, perhaps you might try the "???" command to send information to the printer.

Perhaps I am wrong, but type to printer seems to me more like a residue from the DOS age.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform