Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to OkiData locally and via network.
Message
De
10/01/2005 15:09:54
 
 
À
05/01/2005 18:27:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
00974244
Message ID:
00975769
Vues:
14
I'm willing to try that.

I setup the same network printer on the two different machines.
Both machines are xp sp2. Both machines have vfp 8.0 sp1.

I modified the report and went the to printer properties until I got the report to work on one machine and saved the settings in the Expr. I did the same on another machine and notices two differences.

The Paper Size was 122 on one with a collate of 0.
The Paper Size was 119 on the other with a collate of 1.

>For XP, you need to define a custom paper size diferently than you do for W9X. You need to select your Printers and Faxes form the Start button, and then choose Server Properties from the File menu and set up your custom size there.
>
>
>>The report is printing and previewing as if it were printing standard 8.5 by 11 page. This is only happening on an xp machine printing to its local printer.
>>
>>In this case the Device was set to a non existent printer on the local machine. Device=\\Alloy\Orders is in the Expr in the frx. The default printer is the okidata printer on the local macine.
>>
>>Using the APrinters. The printer name is \\Alloy\Orders when they are using the network printer and the printer name is Orders when they are using the local printer.
>>
>>One thing I noticed when testing is that when I cleared out tag1 and tag2, the Device= was removed from the Expr. Also I was setting the report to landscape, but when I set the report to portrait it looks like it is printing properly now.
>>
>>>You don't mention what is or is not happening.
>>>
>>>Is the report printing out at all to the correct printer but with the wrong fonts in Windows XP?
>>>Is the report printing out to the wrong printer but appears correct.
>>>Is the report not printing to any printer?
>>>
>>>It sounds like your report is going to the windows default printer or the VFP default printer. What is the windows default printer in Windows XP What is the vfp default printer? Verify the windows default printer is the Okidata printer and then what happens if you issue the following in your app before you print?
>>>
>>>lcprinter = set('PRINTER',2)
>>>set PRINTER TO NAME (lcprinter)
>>>
>>>Also, in my experience, when I have a DEVICE = line in a report and it points to a nonexistant printer, the report will print out to the windows default printer.
>>>
>>>In Windows XP the device = line must point to the valid printer name in windows. There must be a difference between your device= line and the actual windows printer name on the XP machine.
>>>
>>>
>>>>In a previous version of an application I'm working on, the programmer setup an Orders printer, which could either be a local printer or a network printer.
>>>>
>>>>The application would then print to the respective printer either network or local depending on how that machine was setup. There is no code in the applicatin that points to a specific printer.
>>>>
>>>>This also needs to work on both XP and Windows 98.
>>>>
>>>>I tried using the frx and clearing out the Expr and then setting a printer to that report. It stores the name of the server and the Orders printer DEVICE=\\< Server >\Orders
>>>>
>>>>This works great for the network printer and even the local printer in 98 but does not work for the local printer in XP.
>>>>
>>>>Has anyone run into this kind of problem?
>>>>
>>>>Is there a simple solution to this problem?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform