DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: C# VSTO Replace Images in Document before and after PrintOut

The issue is, that the second call(s) to ReplaceImage after the PrintOut()-Call are done before the First Replacement and Print is done.

OK, I use BackgroundPrintingStatus property to wait the method PrintOut() done. It works. This is my test code:

       void Cs_VSTO_Replace_Images_in_Document_before_and_after_PrintOut()
        {
            string f = @"X:\t.docx"
            string fPrint =

Top comments (0)