Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Reports to a Remote Dir
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00501471
Message ID:
00505274
Vues:
29
This message has been marked as the solution to the initial question of the thread.
>>>I am currently printing a few hundred reports(via DO...WHILE loop) to a remote directory (\\REMOTE\temp\) for printing at a later time. The remote machine is running Win98 and the directory is shared. The problem I have is that, until I access the directory thru Windows Explorer, the reports are "pretending" to print, but never make it there. As soon as I open the folder the reports immediately start being created. Has anyone else seen this?
>>You can try to create a temp file before you do printing:
>>lcPath = "\\Remote\temp\"
>>lcTempName = SYS(2015)
>>=strtofile("Testing", lcPath + lcTempName)
>>Erase (lcPath + lcTempName)
>>
>>Maybe it will help.
>
>Nope, that didn't work. The temp file was never created in the remote directory.

You can try to map remote directory to a local name.
It can be done dynamically using WSH
oNet = CREATEOBJECT("WScript.Network")
oNet.MapNetworkDrive("Z:", "\\REMOTE\temp\")
* Do printing to Z:\filename
oNet.RemoveNetworkDrive("Z:")
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform