Com错误800a03ec当我调用PrintPreview()方法的工作簿 [英] Com error 800a03ec when i call PrintPreview() method of workbook

查看:318
本文介绍了Com错误800a03ec当我调用PrintPreview()方法的工作簿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显示讯息Com错误800a03ec当我可以PrintPreview()工作簿

Show message of Com error 800a03ec when i can PrintPreview() of workbook

m_spWorkbook->PrintPreview();

我在以下代码中获取m_spWorkbook:

i get m_spWorkbook in the following code:

hr = spOleObject->QueryInterface(__uuidof(_Workbook), (void**)&m_spWorkbook);

有什么问题?

推荐答案

异常800a03ec通常意味着语言环境的问题。例如,Excel中的语言与区域设置不同。请查看以下链接:

Exception 800a03ec often means problem with locale. For example, language in Excel differs from regional settings. Have a look at these links:

  • http://blogs.msdn.com/b/eric_carter/archive/2005/06/15/429515.aspx
  • http://support.microsoft.com/kb/320369

正如我从其他问题中了解到的,HRESULT 0x800a03ec抛出可能会与Excel实例。或许,当你调用 printPreview 应用程序已经关闭,或者正在尝试在Excel实例中创建额外的Excel实例或用户编辑

As I understood from your other question, HRESULT 0x800a03ec throwing may be assotiated with instances of Excel. Perhaps, in moment, when you are calling printPreview application is already closed or you are trying create additional instance of Excel or user editing in your instance of Excel

这篇关于Com错误800a03ec当我调用PrintPreview()方法的工作簿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆