關於QReport.preview的疑惑 |
尚未結案
|
Amanda_Chen
一般會員 發表:25 回覆:82 積分:21 註冊:2003-12-28 發送簡訊給我 |
|
yachanga
資深會員 發表:24 回覆:335 積分:296 註冊:2003-09-27 發送簡訊給我 |
Hi Amanda_Chen您好:
這個主題小弟之前也很好奇, 自己也研究了一下..給您參考:
目前QReport 提供三種Preview的功能 Preview / PreviewModal / PreviewModeless
這三種Preview之所以共同存在,一定都有其價值..
之前有許多討論, 我想也是對於上述三種Preview混淆所造成的疑惑
http://delphi.ktop.com.tw/topic.php?TOPIC_ID=47927
http://delphi.ktop.com.tw/topic.php?topic_id=31489
http://delphi.ktop.com.tw/topic.php?topic_id=35471
http://delphi.ktop.com.tw/topic.php?topic_id=21337
http://delphi.ktop.com.tw/topic.php?topic_id=20014
http://delphi.ktop.com.tw/topic.php?topic_id=18962 1. 從Delphi Help 來看差異
Preview: The window created by Preview is not a true Modal window but the program will not continue until the preview is closed. PreviewModal:Some database drivers are not thread safe and this might cause unexpected behavior or program crashes. Only use PreviewModal in situations where it is sure that a thread safe database driver will be used. PreviewModeless:The program will continue executing on the next line after the PreviewModeless call while the report is being generated and previewed. 2. 從實作面來看差異
老實說從Delphi Help 字面的意義不太好理解,從實作面就比較清楚差異
1. Preview: 會額外產生一個預覽視窗,上面的功能鍵都正常,可以縮小回到主視窗. 但必須關閉後程式才會繼續執行.
2. PreviewModal: 直接產生預覽視窗, 但是粉奇怪列印/印表機設定Disable.無法回到上個視窗.必須關閉後程式才會繼續執行.
3.PreviewModeless:直接產生預覽視窗, 但是粉奇怪列印/印表機設定Disable.可以回到上個視窗.程式會繼續執行. 所以我實作上只會用Preview..簡單明瞭 至於您的問題何時用prepare, previewModal(沒有PreviewModule吧)
> 不知道有沒有回答您的問題,,
若解釋不好或是有任何謬誤地方, 請各位大大指教< > <>~悠遊法國號~
|
Amanda_Chen
一般會員 發表:25 回覆:82 積分:21 註冊:2003-12-28 發送簡訊給我 |
引言: Hi Amanda_Chen您好: 這個主題小弟之前也很好奇, 自己也研究了一下..給您參考: 目前QReport 提供三種Preview的功能 Preview / PreviewModal / PreviewModeless 這三種Preview之所以共同存在,一定都有其價值.. 之前有許多討論, 我想也是對於上述三種Preview混淆所造成的疑惑 http://delphi.ktop.com.tw/topic.php?TOPIC_ID=47927 http://delphi.ktop.com.tw/topic.php?topic_id=31489 http://delphi.ktop.com.tw/topic.php?topic_id=35471 http://delphi.ktop.com.tw/topic.php?topic_id=21337 http://delphi.ktop.com.tw/topic.php?topic_id=20014 http://delphi.ktop.com.tw/topic.php?topic_id=18962 1. 從Delphi Help 來看差異 Preview: The window created by Preview is not a true Modal window but the program will not continue until the preview is closed. PreviewModal:Some database drivers are not thread safe and this might cause unexpected behavior or program crashes. Only use PreviewModal in situations where it is sure that a thread safe database driver will be used. PreviewModeless:The program will continue executing on the next line after the PreviewModeless call while the report is being generated and previewed. 2. 從實作面來看差異 老實說從Delphi Help 字面的意義不太好理解,從實作面就比較清楚差異 1. Preview: 會額外產生一個預覽視窗,上面的功能鍵都正常,可以縮小回到主視窗. 但必須關閉後程式才會繼續執行. 2. PreviewModal: 直接產生預覽視窗, 但是粉奇怪列印/印表機設定Disable.無法回到上個視窗.必須關閉後程式才會繼續執行. 3.PreviewModeless:直接產生預覽視窗, 但是粉奇怪列印/印表機設定Disable.可以回到上個視窗.程式會繼續執行. 所以我實作上只會用Preview..簡單明瞭 至於您的問題何時用prepare, previewModal(沒有PreviewModule吧) > 不知道有沒有回答您的問題,, 若解釋不好或是有任何謬誤地方, 請各位大大指教< > <>~悠遊法國號~謝謝Yachanga大大!解答得不能再清楚了!又快,又深入,還有格外資料供參考,能不能多加分啊? 是沒有previewmodule,是偶的筆誤啦。昨天寫的時候也有些疑惑,可還是粗心大意地沒去理,呵呵,真是要好好檢討一下了。 再次謝謝大大。 |
Amanda_Chen
一般會員 發表:25 回覆:82 積分:21 註冊:2003-12-28 發送簡訊給我 |
引言: Hi Amanda_Chen您好: 這個主題小弟之前也很好奇, 自己也研究了一下..給您參考: 目前QReport 提供三種Preview的功能 Preview / PreviewModal / PreviewModeless 這三種Preview之所以共同存在,一定都有其價值.. 之前有許多討論, 我想也是對於上述三種Preview混淆所造成的疑惑 http://delphi.ktop.com.tw/topic.php?TOPIC_ID=47927 http://delphi.ktop.com.tw/topic.php?topic_id=31489 http://delphi.ktop.com.tw/topic.php?topic_id=35471 http://delphi.ktop.com.tw/topic.php?topic_id=21337 http://delphi.ktop.com.tw/topic.php?topic_id=20014 http://delphi.ktop.com.tw/topic.php?topic_id=18962 1. 從Delphi Help 來看差異 Preview: The window created by Preview is not a true Modal window but the program will not continue until the preview is closed. PreviewModal:Some database drivers are not thread safe and this might cause unexpected behavior or program crashes. Only use PreviewModal in situations where it is sure that a thread safe database driver will be used. PreviewModeless:The program will continue executing on the next line after the PreviewModeless call while the report is being generated and previewed. 2. 從實作面來看差異 老實說從Delphi Help 字面的意義不太好理解,從實作面就比較清楚差異 1. Preview: 會額外產生一個預覽視窗,上面的功能鍵都正常,可以縮小回到主視窗. 但必須關閉後程式才會繼續執行. 2. PreviewModal: 直接產生預覽視窗, 但是粉奇怪列印/印表機設定Disable.無法回到上個視窗.必須關閉後程式才會繼續執行. 3.PreviewModeless:直接產生預覽視窗, 但是粉奇怪列印/印表機設定Disable.可以回到上個視窗.程式會繼續執行. 所以我實作上只會用Preview..簡單明瞭 至於您的問題何時用prepare, previewModal(沒有PreviewModule吧) > 不知道有沒有回答您的問題,, 若解釋不好或是有任何謬誤地方, 請各位大大指教< > <>~悠遊法國號~謝謝Yachanga大大!解答得不能再清楚了!又快,又深入,還有格外資料供參考,能不能多加分啊? 是沒有previewmodule,是偶的筆誤啦。昨天寫的時候也有些疑惑,可還是粗心大意地沒去理,呵呵,真是要好好檢討一下了。 再次謝謝大大。 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |