我们公司开发了一个宏,用于将文件导出为Excel格式,然后将这些值插入Sage ACCPAC薪资模块中。由于某种原因,代码已经停止响应,并给出了一个错误:method ireport of accpac.ireport failed
以下是代码:
rpt.NumOfCopies = 1
rpt.Format = PF_NONE
rpt.Destination = PD_FILE
rpt.PrintDir = "[\\hcc-acc\Accpac\Macros\Reports and Macros\Tax\Test]"
rpt.PrintReport一旦涉及到rpt.PrintReport,就会出现一个错误。我将非常感谢你的帮助。
发布于 2012-07-16 17:10:42
您需要在rpt.PrintDir参数中包含PDF文件的名称:
rpt.PrintDir = "[\\hcc-acc\Accpac\Macros\Reports and Macros\Tax\Test\SomeFileName.PDF]"https://stackoverflow.com/questions/11501903
复制相似问题