Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting Printer does not always work.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Selecting Printer does not always work.
Miscellaneous
Thread ID:
00195144
Message ID:
00195144
Views:
54
When I try change the printer in my program it does not always work.
I am running VFP 5.0a.

I use:
mprinter = getprinter()
set printer to name (mprinter)
report form MyReport noconsole to print

If I run getprinter() again it defaults to the printer I named. (I have found that if it did not get changed due to my incorrect coding the default would not be the one I thought I was selecting)

The reports I am running were converted from FoxPro 2.6 for DOS. I did find that if I went into the .frx file and removed the printer and port names in the EXPR field in the first record and then modified the report and selected a different printer in the page setup it would begin to work "Most of the time" but it may sometimes revert back to not changing. I can use REPORT FORM MYREPORT NOCOSOLE TO PRINT PROMPT and that works all the time but I have times where I am printing to two different printers for checks, the check to one and a list of invoices covered on plain paper to another, it would be very combersome for the user to keep changing the printer back and forth.

On the same note, is there any way to see what the current printer is? I can't seem to find any VFP commands that will show me other than running getprinter().

I am considering upgrading to 6.0. Does anyone think this might help?

Many thanks in advance.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Next
Reply
Map
View

Click here to load this message in the networking platform