Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Run-time error '509' while printing a word document

353 views
Skip to first unread message

DPM

unread,
Apr 8, 2010, 5:48:12 AM4/8/10
to
Hi,

I have got a document which is protected(From MS Word select Tools=>Protect
document, with editing restictions selected)

Now the document is printed to the default windows printrer using
ShellExecute from vb.
The same can be done, by right clicking on the document and select Print
from the popup menu of windows explorer.

The document prints without a problem.

But when MS Word is already opened such as opening another word document or
MS Outlook which uses the word editor and print the document as above the
following error prompts.
"Run-time error '509'
The SetDocumentDirty command is not available because the document is locked
for editing."

I am using MS Word 2003 SP3 (11.8169.8172) on XP.

Please could someone advice, what may be going wrong? or is there any other
settings to be done before printing.


DPM

unread,
Apr 11, 2010, 11:51:30 PM4/11/10
to

Hi,

Could someone please help on the following problem? Any suggestions?


"DPM" <a...@bb.cc> wrote in message
news:O10Hi$v1KH...@TK2MSFTNGP04.phx.gbl...

Terry Farrell

unread,
Apr 12, 2010, 3:30:26 AM4/12/10
to
I have no idea. My only guess is that as Word is open to an other document,
it must have something to do with locking files. That suggests that it may
be because normal.dot is locked and the document you are trying to print is
also based on normal.dot. Try attaching the document you are trying to print
to a different template. Then test again. But this is only a wild guess
other than it must have something to do with Locking files created when Word
opens.

--
Terry Farrell - MSWord MVP

"DPM" <a...@bb.cc> wrote in message

news:e9TntKf2...@TK2MSFTNGP02.phx.gbl...

DPM

unread,
Apr 15, 2010, 6:38:03 AM4/15/10
to

Thanks Terry.

"Terry Farrell" <terryf...@msn.com> wrote in message
news:uX6bGIh2...@TK2MSFTNGP04.phx.gbl...

0 new messages