簡體   English   中英

如果未安裝打印機,Rave將報告故障

[英]Rave reports snags if no printer installed

我已經在虛擬機上使用Rave報告測試了一些D2006代碼,發現如果沒有安裝打印機,則在生成PDF報告時應用程序掛起。 掛起發生在這里:

exception message : The application seems to be frozen.

main thread ($108):
005c5e62 +106 MyApp.exe    RpRPTF          SimpleTextWidth
006198f7 +31b MyApp.exe    RpMemo          TMemoBuf.GetLine
0061a44a +086 MyApp.exe    RpMemo          TMemoBuf.MemoLinesLeft
005cba28 +014 MyApp.exe    RpBase          TBaseReport.MemoLines
00672e8e +072 MyApp.exe    MyAppReports    PrintReportParagraph
00677f73 +acb MyApp.exe    MyAppReports    PrintSummaryReportBody
0066b208 +010 MyApp.exe    MyAppMainForm   TMainForm.RvSystemSummaryReportPrint
005c6f35 +015 MyApp.exe    RpBase          TBaseReport.PrintEvent
005c8066 +03a MyApp.exe    RpBase          TBaseReport.Execute
0060a299 +125 MyApp.exe    RpSystem        TRvSystem.GenerateReport
0060a52a +07e MyApp.exe    RpSystem        TRvSystem.Execute
0067d364 +0ac MyApp.exe    MyAppReports    DoPrintSummaryReport
0067d64d +1d5 MyApp.exe    MyAppReports    ProduceReports
0066e966 +1e6 MyApp.exe    MyAppProcessing ProcessMyAppData
0066ab9b +0d7 MyApp.exe    MyAppMainForm   TMainForm.DoProcessData

毫無疑問,這與頁面寬度為零有關,這使計算該頁面可容納多少行或類似內容的代碼混淆了。

問題是我正在寫PDF,而不是打印-所以我不明白為什么沒有打印機會使該代碼跳閘(已安裝Acrobat Reader)。 如果我安裝打印機,它會運行。 為什么需要安裝打印機(該應用程序可以在未安裝打印機的情況下安裝在工作站上-出現錯誤消息:“除非安裝打印機,否則您無法生成PDF報告”似乎有點笨拙)?

這是Rave Reports中的一個長期錯誤。 它與沒有安裝默認打印機有關。 我將查找指向舊的Borland / CodeGear論壇帖子的鏈接( CodeNewsFast似乎現在沒有響應)。 假設存在打印機時存在問題。 我不知道它是否在最新版本的Rave中已修復。 (D2006很久以前了。)

如果我沒記錯的話,解決方案是將文本驅動程序安裝到“模擬”打印機上。 這允許Rave繼續運行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM