Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Problem...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00156750
Message ID:
00157071
Vues:
24
Steve,

What exactly are you trying to accomplish here with PRINT, ALTERNATE and the MEMO field?

A few things that pop out:

You shouldn't mix SET PRINTER and SET ALTERNATE use one or the other depending on where you want the current ?/?? output to go.

You have to SET ALTERNATE ON

You have to SET ALTERNATE OFF, SET ALTERNATE TO to close the file you are about to append into the memo.

>My code is something like this:
>
>In the Click procedure of a Print command button:
>GET PRINTER()
>SET PRINTER ON
>SET ALTERNATE TO a text file
>I create the report using
>? 'THIS IS MY REPORT'
>?
>? 'THAT'S AN EXAMPLE'
>
>Then,
>
>In the Valid procedure of a Print command button:
>CREATE CURSOR TEXTFILE(filename c(60),mem m)
>
>and then APPEND MEMO mem FROM report.txt
>
>EJECT PAGE
>
>SET PRINTER OFF
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform