或者用什么方法能后台打印PDF文件。
我用AcroPDF,好像没成功。
Dim arcpdf As New AcroPDFLib.AcroPDF
arcpdf.src = strTempFile 'd:\MyFile.pdf
'上面这句就出错。
arcpdf.LoadFile(strTempFile)
arcpdf.Print()
出错信息:
Unable to cast COM object of type 'AcroPDFLib.AcroPDFClass' to interface type 'AcroPDFLib.IAcroAXDocShim'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3B813CE7-7C10-4F84-AD06-9DF76D97A9AA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).