Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing on WIn 98.
Message
 
 
À
02/04/2001 04:24:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00490848
Message ID:
00493574
Vues:
11
Tim,
cPrinter in set printer to (cPrinter ) in VFP could mean Printer Name or File Name: If VFP can find printer referenced by cPrinter than that printer becames current printer. Otherwise VFP will treat cPrinter as file name. In this case you should see file with (cPrinter) name in background app default directory.


>I have a problem printing on windows 98.
>
>I built 2 programs when I print from the main app a second program is started to do the printing. So it is sort of in the background.
>The background program gets the printer name in a dbf file.
>
>I.E.
>-Main App...
>replace jobprinter with getprinter()
>
>-Back ground app
>cPrinter="'"+alltrim(Job.printer)+"'"
>set printer to &cPrinter
>REPORT FORM.........
>
>In the main app when I preview and print it works fine.
>But in the background app on windows 98 it sometimes does not send anything to the printer. I see the Printing.. window but no job comes out?!
>
>I noticed one thing is that the
>APRINTERS(aPrintArray) command returns different values for network printers on
>windows 98.
>
>i.e.
>win 2000
>aPrintArray[1,1] is "\\RUNTIME-MAIN\Lexmark 1855"
>aPrintArray[1,2] is "192.168.1.2\LEXMARK02"
>
>win 98
>aPrintArray[1,1] is "Lexmark 1855"
>aPrintArray[1,2] is "\\RUNTIME-MAIN\Lexmark 1855"
>
>I use the aPrintArray[1,1] as the name I send to the program.
>I tried to check for win98 version and then use the port instead but It didn't work.
>
>Has anyone seen this before?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform