Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing problems
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00115900
Message ID:
00116092
Vues:
16
>I have had a printer selection problem. Using "set printer to" will not allow me to choose a networked printer (win95 peer to peer over Novell). Futher I looked at Mircosofts Web site and saw that I could change to default printer using API calls. I did this (storing the default printer, setting the default to the printer chosen and then back again) and this did not work (the coded example from the WEB site did not work).
>
>It is not satisfactory for me to use PROMPT on the REPORT FORM command because I cannot detect if the user chose cancel and also if the user chooses to preview the report they get the option of selecting the printer icon whilst previewing and this does not allow me to give the user the selection of a printer at that point.
>
>Has anyone else has a similar problem to this and solved it ?(incidentally I reinstalled WIN95 and VFP5.0 because my sanity was near breaking).

(Assuming > VFP3) have you tried SET PRINTER TO NAME... Read the installed printer names from WIN.INI into an array, and create a form to allow the user to choose. Then store that name at an appropriate level in your app.

Kevin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform