Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement