Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing ? after SET PRINTER ON.
Message
From
05/05/2009 16:31:43
 
 
To
05/05/2009 07:27:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01397871
Message ID:
01398019
Views:
38
>>Hi All:
>>
>>The following doesn't seem to work in Windows XP. i.e the printer doesn't fire away and say 'Hello'.
>>
>>In Windows Vista, the system asks you to save he data to a file with an .XPS extension.
>>
>>So the question is: How can I get the printer to print without any fancy stuff.
>>
>>
>>SET PRINTER on
>>? 'hello'
>>SET PRINTER off
>>
>>
>>EJECT doesn't make it work, either.
>>
>>Thanks,
>>
>>Yossi
>
>I am not sure about all the details... I would have to study my own code in more detail, and I am in a hurry now.
>
>For now, perhaps you can try to include the following commands:
>
>
>set printer to name ... && name can be obtained with getprinter()
>SET PRINTER on
>? 'hello'
>SET PRINTER off
>set printer to && This might reset the printer, and thus force printing.
>
Hilmar:

The SET PRINTER TO is what did the trick, this also works:
>>SET PRINTER on
? 'hello'
SET PRINTER off
SET PRINTER to
Thanks!

Yossi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform