D
david
Hi,
Following code in a VB-COM use Winword to print out a
document. But Winword will rise an error message if
something is wrong in the document. I don't want the error
message, since no body is waiting for clicking that OK
button. Is it possible to disable that error message from
Winword? Thanks.
Set m_objNewDoc = m_objMSWord.Documents.Open
(v_strInWordDoc, False, True)
Set m_objMSWordDialog = m_objMSWord.Dialogs(97)
m_objMSWordDialog.Printer = m_DC.NewPrinterName
m_objMSWordDialog.DoNotSetAsSysDefault = 1
m_objMSWordDialog.Execute
m_objNewDoc.PrintOut False 'Error rised here ...
m_objNewDoc.Close False
Following code in a VB-COM use Winword to print out a
document. But Winword will rise an error message if
something is wrong in the document. I don't want the error
message, since no body is waiting for clicking that OK
button. Is it possible to disable that error message from
Winword? Thanks.
Set m_objNewDoc = m_objMSWord.Documents.Open
(v_strInWordDoc, False, True)
Set m_objMSWordDialog = m_objMSWord.Dialogs(97)
m_objMSWordDialog.Printer = m_DC.NewPrinterName
m_objMSWordDialog.DoNotSetAsSysDefault = 1
m_objMSWordDialog.Execute
m_objNewDoc.PrintOut False 'Error rised here ...
m_objNewDoc.Close False