Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SYS(1037) Print Problem 1

Status
Not open for further replies.

jdhilljr

Programmer
Sep 1, 2003
296
US
I work for a company using a program built by Visual Fox Pro 6.0 We are presently on a pier to pier network using an NT4 administrator. Operating systems for most computers are XP Home. I am maxed on the number of computers that can be attached to the main program which resides on a computer with xphome. I have started to have a problem where the printer selected is not the printer that is used. The programmer of the application insists that it is a network problem. However every other application in windows,microsoft office,word perfect or any program has no touble with the print selection. Some of the printers that print the job are not even mapped on the computer that selected the printer. Also ghost addition of print drivers are occuring everywhere. Let me know if there is something I can check. I am very familiar with the program and have learned quite a bit about VFP.

Thanks,
Jim
 
Most likely you are experiencing Printer Selection Settings coming directly from the Reports's FRX file. These settings were saved as part of the FRX file at the time the report was created.

Look at this faq184-581 to see how to 'hack' the FRX file and remove the pre-established printer settings.

Good Luck,


JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 

sys(1037) is not know to effectively change the printer at the windows' level, try using this:
Code:
lcPrinter=GETPRINTER()
SET PRINTER TO NAME "&lcPrinter" &&use macro sub INTO quotes
REPORT FORM formname TO PRINTER

Mike Gagnon [μ].[γ].

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
This depends on how you are sending your reports to print. Here is some code that may assist.

* save current printer
lcDefaultPrinter = SET("PRINTER",3)

* build an array of printers.
lnCount = APRINTERS(arMyPrinters)
FOR lni = 1 To lnCount
* this displayes them, you will remove this later
MESSAGEBOX(arMyPrinters[lni,1])
ENDFOR


* Set the printer
* you can use an array value or the getprinter() function

* reset printer when done
SET PRINTER TO NAME (lcDefaultPrinter)


* again, this depends on how are sending the reports to print, but this code may assist in making sure you are sending them to the correct printer.

Finally, check out the FAQ Section. There is a FAQ on removing the printer information from the report. That may be pimping you too.



Jim Osieczonek
Delta Business Group, LLC
 
Thank you for your quick responses. I have tried the "getprint" suggestion on a smaller application and everything worked perfectly. I appreciate the help.

I will let you know if this works on the main.
Thanks,
Jim
 
JRB-Bldr

After trying the other suggestion without success. I used your procedure. It cleared the matter quite nicely.

Thank you very much.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top