Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print routine is begin weird...
Message
De
21/05/1999 16:49:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00221609
Message ID:
00221611
Vues:
11
>I'm trying to use a custom dialog to send a report to either an ASCII file or a printer. I'm using aprinters() and a combo box to choose which printer the user might want to use. I've gotten it to goto a file just fine, no problems there, but when I try to send it to the printer...ARGH!!
> What's happening is that i FINALLY got the darn thing to at least go to the spooler, but now there are two jobs that show up in the spooler, one is 0k and the other is the actuall print job...here's my code thus far:
>
>With THISFORM
>DO CASE
> CASE "PRINT"$UPPER(.cboOutputTo.value)
> REPORT FORM C:\SSUSER\USERLIST\REPORTS\SSUSERPG.FRX; NOCONSOLE RECORD 5 TO PRINTER
> CASE "TEXT"$UPPER(.cboOutputTo.value)
> _ASCIICOLS=100
> REPORT FORM C:\SSUSER\USERLIST\REPORTS\SSUSERPG.FRX; NOCONSOLE RECORD 5 TO FILE (.txtFilename.value) ASCII
>ENDCASE
>ENDWITH
>
>If I added PROMPT to the end of the line under the CASE "PRINT" line then all works well when I select the correct printer. I'm wanting to have only one dialog box (mine) and just shoot the report to the freakin printer...HELP!!! Please ask any clarifying question, and I appreciate all your help. This forum has really helped me to be a better programmer!:D

Using SET PRINTER TO NAME ... you may print to different printers. Do not forget to clean up 'default' printer definitions from FRX table.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform