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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 20520, somebody can help me???

Status
Not open for further replies.

Annjo

Programmer
Jul 10, 2000
1
BR
I need a little help, I use the Visual Basic 5, and when i print (to the window) my report  in my program and close after that, and try to print another report,  a Msg Box say: Job alredy started. And the program is resseted. I really don't have any idea why this error is happening. And the number of this error is 20520. Please, I really need your help.<br>Thanks<br><br>Leonardo...<br>
 
Are you issuing a 'PEClosePrintJob' command after you have finished viewing the report. I tend to use the following logic flow for each report I display.<br><br>PEOpenEngine<br>&nbsp;&nbsp;PEOpenPrintJob<br>&nbsp;&nbsp;&nbsp;&nbsp;PEOutputToWindow<br>&nbsp;&nbsp;&nbsp;&nbsp;PEStartPrintJob<br>&nbsp;&nbsp;&nbsp;&nbsp;wait for user to finish looking at report<br>&nbsp;&nbsp;&nbsp;&nbsp;(eg &quot;Press any key to continue&quot;)<br>&nbsp;&nbsp;PEClosePrintJob<br>PECloseEngine<br><br>This has worked 100% for me so far.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top