?
Solved

Problem: Word is currently printing...

Posted on 1998-01-08
1
Medium Priority
?
297 Views
Last Modified: 2012-06-27
Greetings,
I have an  Access97 application which omang other things prints Word97documents based on database member selection information. I am using DDE and if the Documents are short 4-5 pages I don't have a problem. If the Documents are longer I get "Word is Currently printing...." messages. What is the best way to halt the DDE request to open and print until the current document has been spooled.

I know you can set background printing options to hide the message but does this actually halt the DDE request until the job is spooled? If no, what is my best alternative?

Thanks,
Brad
0
Comment
Question by:bhummel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
Trygve earned 100 total points
ID: 1964963
Does the "Word is Currently printing ..." message come as an error message. Is so you make your error trapping check for this particullar error code and make your code loop until it stops.

Example:

On error goto errCheckItOut

' Your code

Exit Function

errCheckItOut:
  If err = <The error code> And error Like "Word is Currently*" then
   Resume 0 ' Try again
  else
   MsgBox(err & " "& error) ' display error information
   End
  End If

If you don't want it to try forever you could also include a counter and make it stop retrying after say 10,50... attempts with some message to the user.


You may also have a look into Automation which is the recommended way of working with other, at least Microsoft, applications.

Feel free to comment if you have any questions.

Hope this helps !
Trygve
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question