Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set printer to name not responding in program
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Set printer to name not responding in program
Divers
Thread ID:
00676851
Message ID:
00676851
Vues:
87
I have an unusual problem, that I am puzzled by.
I have some simple reports I created in the foxxpro report designer and I run them using a selection form that gives options. The form has color boxes that print depending on the data, so I want to be able to send it to the color laser on the network.

If I issue a Report Form umptysquat for record nrec to printer prompt nowait I get the select printer prompt and it all workd fine.

But if I leave out the prompt it goes to the windows default printer (not the color one) each and every time.

I am trying to make a set printer command button work by running cprinter = getprinter() and then doing a SET PRINTER TO NAME (cprinter). Then when I issue the report form command without the prompt it seems to ignore the set printer to command.

It gets worse. I can issue the set printer to name (cprinter) from the command window and it works. But the same comand in the click event of the print button on my form doesn't do it.

SET("PRINTER",2) returns the default windows printer, and
SET("PRINTER"),3) returns the default Foxpro printer. But it seems to always be defaulting to the windows printer and not the one I set with Foxpro.

Anyone seen this before and have any ideas.

Any help would be pperciated. TIA
Ron Seidl
Independent Developer
VFP

"I'm playing in life's theater in anticipation of a great cast party!"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform