Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing reports to specific printer trays
Message
De
05/12/1997 12:01:36
 
 
À
05/12/1997 09:33:48
Jeff Tucker
Mackinac Center For Public Policy
Midland, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00063760
Message ID:
00064045
Vues:
77
>>>>>>>I have a report in FoxPro 2.6 which is supposed to print to an envelope feeder on an HP LaserJet Printer. The report worked fine until recently.
>>>>>>>
>>>>>>>I just switched all our printers to be network printers using JetDirect cards and cat 5 wire to connect to our hub and therefore our computer system.
>>>>>>>
>>>>>>>Everyone has the JetAdmin software; the print drivers for the printers are installed and working fine from MS Word and other programs.
>>>>>>>
>>>>>>>When I open the report and edit the "printer setup" under "page layout," I can choose the paper size, #10 Envelope, and I can choose envelope feeder. I then proceed to save and close the file. When I open it again to check the settings, paper size is #10, but the envelope feeder is no longer selected, instead the multi-purpose tray appears.
>>>>>>>
>>>>>>>I have two thoughts. First, there may be a way in code to force FoxPro to tell the printer which tray it is printing to. Second, that FoxPro 2.6 does not support network redirections using the \\HP_NETWORK_PRINTERS\38.17.23.201 syntax for print drivers.
>>>>>>>
>>>>>>>I would appreciate any suggestions.
>>>>>>>
>>>>>>>Take care,
>>>>>>>Jeff
>>>>>>
>>>>>>Jeff,
>>>>>> I would do this in the setup for the report.. Send the esacpe sequence that selects the envelope feeder with ??? ..
>>>>>>
>>>>>>Thanx!
>>>>>>
>>>>>>Tony MIller
>>>>>>Vancouver, Wa
>>>>>
>>>>>Thanks for the tip, Tony.
>>>>>
>>>>>I am not sure how to do what you recommend. First, I am not sure what the escape sequence is. Second, I do not see any place in the setup to type the escape sequence. Third, I opened the frt and frx files in the ascii editor, but they were incomprehensible, so I am not sure where to make the adjustment you recommend.
>>>>>
>>>>>Any advice?
>>>>>
>>>>>Jeff
>>>>
>>>>Jeff,
>>>> I would do this in the program that calls the report form.. Is this printer a 3si/4si?? If so, I can send you the sequence, if you like..
>>>>
>>>>Thanx!
>>>>
>>>>Tony Miller
>>>>Vancouver, Wa
>>>
>>>OK, I see what you mean. My printer is actually an HP LaserJet 4/4M Plus PS. I also have a 5n and a 4/4M Postscript. They should all work with the same sequence. If you know what it is that would be great. Thanks.
>>>
>>>Jeff
>>
>>Jeff,
>> The escape sequence would be:
>>
>>??? CHR(27)+"&l6H"
>>
>>after the report for for the envelope is thru, then you need to tell it to go to a normal tray (example here is upper paper tray)
>>??? CHR(27)+"&l1H"
>>
>>The l1 is Upper tray, 4H is lower tray..
>>
>>Hope this helps..
>>
>>Thanx!
>>
>>Tony Miller
>>Vancouver, Wa
>
>That is great. Thank you.
>
>I am still having some trouble. I have a button on my form that executes the code to print the envelope report. I put your code there.
>
>* Select current record
>thisrec = RECNO()
>
>* Change printer to print to Envelope feeder
>??? CHR(27)+"&l6H"
>
>* Send envelope to the printer
>REPORT FORM c:\fox_data\improve\reports\envelope.frx RECORD thisrec TO PRINTER NOCONSOLE
>
>* Reset printer to bottom tray
>??? CHR(27)+"&4H"
>
>When I click the button a warning appears telling me my printer driver is corrupted. Then the envelope prints. Then the program crashes with a GPF.
>
>I commented out the reset printer line and tried it again. This time the same thing happened except the GPF did not come until I tried to exit the program. I suspect it may have crashed sooner had I done anything else in the program, such as print a different report.
>
>Any thoughts?
>
>Jeff


Jeff,
This maybe extreme, but how about creating a printer setup in Win 95, that uses the envelope feeder as a standard input tray?? Then in your program select that printer by name..

Thanx!

Tony Miller
Vancouver, Wa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform