Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select printer and save printer name in a field
Message
From
23/03/2007 08:17:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/03/2007 04:57:10
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01207341
Message ID:
01207555
Views:
25
This message has been marked as the solution to the initial question of the thread.
>Thanks Hilmar. Would you have a small example ???

To print directly, the commands would be something like this:
local lcPrinter
lcPrinter = GetPrinter()
if empty(lcPrinter) && User pressed ESC
  wait window "Cancelled" nowait
else
  set printer to (lcPrinter)
  report form ...
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform