Solved

Problem: Word is currently printing...

Posted on 1998-01-08
1
295 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 50 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

734 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