Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to a USB printer in XP - Follow up
Message
De
14/02/2007 07:14:46
 
 
À
14/02/2007 07:08:29
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Versions des environnements
Visual FoxPro:
FoxPro Dos
OS:
Windows XP
Divers
Thread ID:
01195473
Message ID:
01195476
Vues:
13
Hi Agnes

Thanks for the reply.

>Terry,
>
>I'm to young for FoxPro Dos ::) but I will give you my ideas.

Lucky you 1) for being so young and 2) for never having been exposed to the horrors thereof. :-)

>
>-VFP 9.0 SP1 ::)

I thought Germans had no sense of humour.

>
>-Will a change to the printer setting during the run of your App be visiblre for the App?
>If yes you may query for the port, create a BAT file by string operations and run it from your app.

Don't quite understand. Main thing is the user is not to be bothered with selecting ports, etc. Everything must be as transparent as possible.

>
>-If not you may create the bat file at least. (install a bat as default way to start your exe. If the exe starts, check those bat file. If you find the redirections, fine, if not alter the bat file and rerun it.)

There IS a .bat to staret the exe, as laid out below. I don't understand you sketch.

Terry
>
>
>Agnes
>>Fellow Murkins
>>
>>You may recall some time ago I enquired as to the possibility of printing to a USB printer in Xp, from a FPD26 application. I've now mananged to guide 2 different user-companies on how to do this, by putting similar to the following commands in their system-invoking DOS batch file:
>>__________________
>>@echo off
>>echo Disconnecting LPT1 from any other connections
>>net use lpt1 /delete
>>echo Rerouting printing to \\server\PrinterName
>>net use lpt1 \\server\PrinterName
>>pause
>>
>>* Here call to the FPD system
>>
>>@echo off
>>echo Disconnecting from the Server's printer
>>net use lpt1 /delete
>>pause
>>__________________
>>Trouble is, this has meant talking computer-illiterate people (bus operators) through the whole process of setting up dummy network connections, mapping shared printers, etc., and editing the .BAT, or relying on their IT dept. (if there IS one) to do it. Neither of these 2 solns is reliable.
>>
>>I was wondering if there were any way of incorporating FPD code that could achieve this, e.g. via a house-keeping routine. I understand the problem would still be the naming of printers and network connections, which is something that would be out of the control of the system anyway.
>>
>>But someone may have some cunning idea of how to do it. If you KNOW it's not possible then that's fine by me - it'll save me work and I'll need to rely on the above method.
>>
>>'ppreciate it
>>
>>Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform