Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto configuring a printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00493208
Message ID:
00495057
Vues:
23
>Hi,
>
>We work with different types of printer(laser, dot matrix, ink jet) and pre-printed custom forms (checks, govern.. forms, invoice ..).
>
>When I installed a customer, I have to create a printer for different type of forms.
>
>Exemple with dot matrix (most customer).
>1. Default setting for regular reports
>2. Custom paper with no margin (invoice or check)
>3. Legal US municipal tax form with no margin
>
>So if 5 printers(1 local/4 shared) is configured on a machine I get 15 choices of printers for Word, Excel ... but our application will only show the 5 custom printers in a combobox of printer because I check the paper type with PRTINFO(2,lcPrinter) = 256 or 5(legal US). Then I go to the next station and it all over again. After I'm gone, I only hope that some user don't change the setup has it was done one time.
>
>This method is working for now but soon I will have to installed more than 100 clients.
>
>My questions are:
>Can I programmaticaly add a printer (like Winfax)? If yes, does it work with 95,98,ME and NT/2000?
>Can I programmaticaly change the default setting of a printer(put custom paper, Legal US, set margin)?
>
>Ideally , I will make a simple form and will check what each printer installed will be capable of doing. eg no custom form for Laser.
>I want to minimize the time to setup a client. Installing the programis simple but it's the time to configuring all the printers that is very long.
>We are trying to convert them to regular paper but there are official documents(check, municipal tax form) that can't be change.All other form were converted to regular paper to give them a way out when then run off of their old pre-printed custom form( invoice)
>
>
>Thank in advance for your answers.
>
>Steve

I'm not so sure you can do it through Foxpro, but take a look at the windows script host. That should be able to do alot of that for you.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform