Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set printer on
Message
De
14/05/2010 06:20:52
 
 
À
14/05/2010 06:00:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01464398
Message ID:
01464540
Vues:
30
OK, I see the problem. Personally I use MERE for reporting, so this feature is built in.

>Yes I thought of that but.
>
>The problem I have is that the user wants to be able to make selections about the paper.
>
>GETPRINTER() doesn't offer any so they need to have the SET PRINTER ON PROMPT.
>
>
>
>>You do it the wrong way.
>>lcPrinter=getprinter()
>>if !empty(lcPrinter)
>>  Set printer to name (lcPrinter)
>>   * Do your printjob here, but WITHOUT any prompt!
>>else
>>   messagebox('No printer was selected!')
>>endif
>>
>>>Hi Sergey
>>>
>>>I found code here
>>>
>>>http://www.tek-tips.com/viewthread.cfm?qid=1538957
>>>
>>>that will detect when Cancel is pressed.
>>>
>>>this http://support.microsoft.com/kb/98746 says that foxpro will ignore the cancel button and print anyway.
>>>
>>>Nick
>>>
>>>>Did you issue
>>>>
>>>>SET PRINTER TO
>>>>
>>>>to close printer job?
>>>>
>>>>>
>>>>>another problem I have is
>>>>>
>>>>>If I
>>>>>
>>>>>set printer on prompt
>>>>>
>>>>>then
>>>>>
>>>>>set printer off
>>>>>
>>>>>the next set printer on prompt command doesn't display the page setup dialogue and even if I cancel sets the PRINTER STATUS back on
>>>>>
>>>>>Any idea why that would be ?
>>>>>
>>>>>Thanks
>>>>>
>>>>>Nick
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>>? SET("PRINTER")
>>>>>>
>>>>>>>
>>>>>>>if using SET PRINTER ON PROMPT is there any way I can trap when the user presses cancel rather than Print
>>>>>>>
>>>>>>>
>>>>>>>Thanks
>>>>>>>
>>>>>>>Nick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform