Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble switching printers
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00841753
Message ID:
00841906
Views:
17
>You have to clear the fields specified AND do a SET PRINTER TO NAME (whatever).
>
>You can do a GETPRINTER() to see what the names should be in your code.

Thanks for the help, Fred. I am getting some different results now but there are still glitches. One change I made was to bind the value of the printer name to the first column of the array returned by APRINTERS() rather than the second column. Now if I have the physical LAN printer as my Windows default and select Acrobat as my application printer, that works fine. But now I can't print to the physical printer. I think possibly I am misusing APRINTERS(), which may explain at least part of my problem. Which column should I be binding to? FWIW here is what APRINTERS() returns -- note that the one physical printer (attached to another PC on the LAN) is in there twice.

=APRINTERS(laPrinters)
laPrinters[1,1] = "Auto hp officejet k series on DELLMIKE"
laPrinters[1,2] = "\\DELLMIKE\hpoffice"
laPrinters[2,1] = "Acrobat PDFWriter"
laPrinters[2,2] = "LPT1:"
laPrinters[3,1] = "\\DELLMIKE\hp officejet k series"
laPrinters[3,2] = "DOT4_001"

When I go into my maintenance dialog, the third choice is grayed out / disabled.

Also, now that TAG, TAG1, and EXPR are blanked in the first record of the FRX, my report is printing portrait. How can I change it back to the desired landscape orientation without dragging a printer name in with it?

Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform