D
DPM
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.
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.