Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getprinter()
Message
From
24/08/2000 04:06:38
 
 
To
14/08/2000 10:04:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00404500
Message ID:
00408647
Views:
10
Have you looked at the SET PRINTER Command? It enables or disables output to the printer, routes output to a file, port, or network printer.

Dave

>I use GETPRINTER() for a print dialog then this function returns am empty string in case a user did not select any printer to print to. Thus my invoice will not be updated.
>
>I have one local printer and one netword printer, When I want to print my invoice to the network printer, It always goes to the local printer and never go to netword. Sometime never print.......Why
>My coding as belows:-
>
>cPrinter = getprinter()
>if !empty(cPrinter)
> select setup
> do whil !rlock()
> endd
> stor incred(invoiceno) to tt_invoice
> unlock
>else
> wait wind 'No Printer Chosen'
>endi
>
>But If I using this command ' report form reportname to printer prompt nonconsole', It has no problem as all either to print to network printer or local printer. But the point is I cannot detect the user to click on OK button or Cancel Button?
Previous
Reply
Map
View

Click here to load this message in the networking platform