2009-11-13 46 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。

相關問題