【问题标题】:Error 20728-F while in using Crystal Reports in VB6在 VB6 中使用 Crystal Reports 时出现错误 20728-F
【发布时间】:2009-11-13 10:35:59
【问题描述】:

我在我的 VB6 项目中使用 Crystal Reports,但在 crystalreport1.action=1 中加载报告时遇到错误;请给我一些解决这个问题的方法。它显示错误为Error in 20728-F

cryStockReport.ReportTitle = "Total Stock Report"
cryStockReport.SQLQuery = "select * from Tr_stockcenter,ma_product where sc_productcode=pr_productcode and sc_yearcode=" & intyearcode & " order by sc_Productcode"
cryStockReport.ReportFileName = App.Path & "\stock.rpt "
cryStockReport.WindowTitle = "STOCK REPORT"
cryStockReport.WindowState = crptMaximized
cryStockReport.DiscardSavedData = True
cryStockReport.Action = 1

【问题讨论】:

  • 你得到什么确切的错误信息?您使用的是什么版本的 Crystal Reports(以及它的组件类型 - ActiveX viever、RDC 组件或其他)?
  • 我使用的是cryst32.ocx dll,版本是Crystal Reports v10.0.0.533 Professional Edition,控件是crystalreport,我得到的错误是20728-f

标签: vb6 crystal-reports


【解决方案1】:

快速搜索“水晶报告错误 20728-F”让我找到了这个thread。看来您可能缺少 cpre23.dll 和 dwmapi.dll。

【讨论】:

  • 这对 Windows 10 仍然有效吗?我面临同样的问题,但无法注册 crpe32.dll
猜你喜欢
  • 2018-08-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-09-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多