Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing
Message
 
À
24/05/1999 10:59:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00222026
Message ID:
00222096
Vues:
23
>>All that works fine, it's when I try to get things directed to the printer when I have problems. Currently I'm using SET PRINTER TO NAME (var), in which var holds the printer chosen from the combobox. then REPORT FORM "form" TO PRINTER.
>> The whole purpose of this is to direct a report form either to the printer or to an ASCII file. Thanks for your replies:)
>
>
>Instead of a second window, just enable a Printer Setup command button when they go to printer. In the Click event of the command button call SYS(1037).

I wanted to let everyone know, I found a solution to this annoying problem, and maybe this should be added to the frequently asked files...

The reason my SET PRINTER wasn't working was because i need quotes, like this:

lcPrinter=GETPRINTER()
SET PRINTER TO NAME "&lcPrinter"
REPORT FORM form TO PRINTER

The above works like a charm!! I found this in a post from a couple months back, finally!!:D I'm going to see if I can't add this solution to the FAQ section, I'm not currently a member, so I probably won't be able to...if I can't(you don't see it there today), PLEASE someone put it there, I've looked thru more posts on this one subject than anything else, and not many real fixes are out there, just one every few months...:|

In any case, thanks for your help and suggestions, I've learned alot, and I hope maybe this will help others too.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform