[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

11/03/2009 at 05:09PM PST, ID: 24869491
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

"Printer is not Ready" Error has recently appeared

Asked by TerryWeir in FoxPro Database

Tags: Printer is not ready, VFP9, SET PRINTER, SET DEVICE TO PRINT

Hello All,

I am having a mysterious printing issue that has recently popped up.  The nut of the issue is that whenever I issue a SET PRINTER TO... command and then a SET DEVICE TO PRINT, I get the "Printer is not ready" error when trying to print using an @ Say command.

This happens in all instances:
    1.From my compiled program on any PC (including my development one)
    2.From the command line on my development PC
    3.When running a program natively on my development PC

I am running Windows XP SP3 and am developing using VFP 9.0 SP2

This was not a problem before, but it has suddenly appeared.  I have updated code and recompiled and distributed it before I realized that this printing was an issue.  Now all of my computers running the compiled program are experiencing the same issue.

I don't know what has changed or what could possibly have the effect of removing the communication to the printer.


The good news is that it works just fine on another PC (XP SP3, VFP SP2) that I have the development program installed on.  It runs the program fine and works fine from the command line.  This means that the problem is not the code, but something about VFP on my main development box.  From what I can see, both development PCs have the same VFP patch level.

This happens regardless of which printer I choose, a local directly connected printer, one on an IP port, or one of my Netware printers (which is what the program accesses).  I can print to any of these from my development PC using any other program.  Only VFP is having the issues.

I have been able to get one way to work, but this is not how any of my code is setup:

If I use this code from the command line, I get it to print:
  SET PRINTER TO  &&clear the printer
  SET DEVICE TO screen
  SET DEVICE TO PRINTER prompt
  @0,1 say 'T'  
  DISPLAY STATUS
  SET DEVICE TO screen
  SET PRINTER to

This opens up a connection directly to the printer and holds the printer with a spooling print job until I issue the SET PRINTER TO command which releases the printer.  During this time though, the DISPLAY STATUS command shows no printer as being set.


It DOES NOT PRINT when I use the standard code (which my programs have) like this:
  SET PRINTER TO \\PGI\QUEUE_3
  DISPLAY STATUS  &&Shows the printer
  SET DEVICE TO printer
  DISPLAY STATUS  &&Shows the DEVICE = 'print'
  @0,1 say 'TE'
  CLEAR
  DISPLAY STATUS  &&Shows the DEVICE = 'scrn'

The printer shows as being set in the first DISPLAY STATUS.  The DEVICE shows as "print" after the SET DEVICE command.  When I issue the @..SAY command, I get the "Printer is not ready" message box.  The DISPLAY STATUS then shows the DEVICE = "scrn".

I still have to check this behavior on my other development box, but it is disturbing that this suddenly crops up out of nowhere.

Any ideas?


Thank you for your help.

Terry
[+][-]11/03/09 10:31 PM, ID: 25736916

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 10:38 PM, ID: 25736948

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: FoxPro Database
Tags: Printer is not ready, VFP9, SET PRINTER, SET DEVICE TO PRINT
Sign Up Now!
Solution Provided By: CaptainCyril
Participating Experts: 1
Solution Grade: B
 
 
[+][-]11/04/09 02:25 PM, ID: 25744712

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 07:43 PM, ID: 25746579

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]11/16/09 01:45 PM, ID: 25834496

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/17/09 12:18 AM, ID: 25837768

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625