2009-11-13 93 views
1

我在我的VB6项目中使用了Crystal Reports,但我在加载crystalreport1.action=1中的报告时遇到了错误;请给我一些解决这个问题的方法。这是显示错误的Error in 20728-F虽然在VB6中使用Crystal Reports时出现错误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 
+0

你得到了什么确切的错误信息?您正在使用什么版本的Crystal Reports(以及它的组件类型 - ActiveX viever,RDC组件或其他)? – Arvo 2009-11-13 10:02:40

+0

我使用的是cryst32.ocx dll,版本是Crystal Reports v10.0.0.533专业版,控件是crystalreport,并且出现20728-f错误 – 2009-11-13 10:27:10

回答

4

在“水晶报错20728-F”快速搜索使我这个thread。看起来你可能会缺少cpre23.dll和dwmapi.dll。