Half-Retirean's Lazy Life Diary / ダラダラ余生日記

最近思ったこと: やりたいことだけやるって幸せなことだ

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  984  : 記事  4  : コメント  42106  : トラックバック  277

ニュース

My Website

初心者向けのサイトです。

C# と VB.NET の入門サイト

最近のできごと

暇人28号FX

Sponsored Link1

Sponsored Link2

Archive

書庫

技術系コミュニティで、HasMorePages プロパティに関して以下のような誤解が多く見受けられます。

PrintDocument の PrintPage イベントで印刷しています。
PrintPageEventArgs イベント引数の HasMorePages プロパティを true にした後、2 ページ目用の印刷内容を Draw しているのに次ページへ印刷されず、1 ページ目に印刷されます。

HasMorePages プロパティは即座に改ページが行われるもの、という誤解があるということです。
私の知る限りですが、ここ 1 年でも 4 件ほどありました。

確かに、リファレンスには HasMorePages プロパティについて、

追加のページを印刷するかどうかを示す値を取得または設定します。

としか書かれておらず、紛らわしいかもしれません。
ただし、PrintDocument クラスの PrintPage イベントについては以下のように書かれています。

出力を指定する他に、PrintPageEventArgs.HasMorePages プロパティを true に設定することによって、印刷する追加ページがあるかどうかを指定できます。

これに加え、「結果、続けて次ページ用の PrintPage イベントを起こすかどうかを設定する」という旨を書いて欲しいな、と思いました。
これ、どこかのフォーラムに既にあがっていたような気がしますので、フィードバックは多分しません。

まあ、即座に改ページするのであれば、HasMorePages という名前の プロパティ ではなく、~NextPage という名前の メソッド にするでしょうから、察しの良い方はリファレンスを見なくても気付きそうです。
つまり、Has から始まる名称 + プロパティという組み合わせからして、直接「改ページという '作用'」をしなさそうだと感じるということです。

投稿日時 : 2006年8月15日 22:22

コメント

# re: HasMorePages プロパティは紛らわしい? 2006/08/16 15:57 R・田中一郎
ボクは全然迷いませんでした。
だってイベントに呼ばれて描画ルーチン書く訳ですし、イベント引数にフラグを設定する訳ですし・・・ねぇ。

# re: HasMorePages プロパティは紛らわしい? 2006/08/16 21:18 じゃんぬ
PrintPage イベントのイベント引数の概念だからという話は、
PrintPage が 1 ページに付き 1 度呼ばれるということを知っていないと説明できないと思います。

やっぱり、PrintPage イベントのフローを明記しておかないと...

# re: HasMorePages プロパティは紛らわしい? 2006/08/18 14:32 R・田中一郎
>PrintPage が 1 ページに付き 1 度呼ばれるということを知っていないと説明できないと思

そういわれてみれば確かに。
PrintPage という名前から、ボクは1ページに1回呼ばれるものだと解釈して使ったので迷わなかったとも言えますね。


# cOYPGNwvyWYtYy 2014/08/04 4:56 http://crorkz.com/
d4sowK Great article.Much thanks again. Keep writing.

# sddEDZpGRQLzA 2014/08/05 6:34 http://crorkz.com/
cwehXI Appreciate you sharing, great article post.Really looking forward to read more. Will read on...

# CWBLAUxrRhVWnIwkj 2014/08/27 4:38 https://www.indiegogo.com/projects/zipibyte-africa
Hey, thanks for the blog article.Thanks Again. Keep writing.

# fReUeABwAxhid 2014/08/28 10:58 http://crorkz.com/
8aJldr Terrific work! This is the type of info that should be shared around the net. Shame on Google for not positioning this post higher! Come on over and visit my web site . Thanks =)

# xdInAldPbXgobGwRp 2014/08/29 9:29 https://www.youtube.com/watch?v=XCzJ_HvZOPA
Im grateful for the article.Much thanks again. Much obliged.

# lVnKZWcYXIwTeBkFUsg 2014/09/10 16:21 https://www.facebook.com/SunsetValleyHolidayHouses
Excellent web site. Lots of useful info here. I'm sending it to several pals ans additionally sharing in delicious. And certainly, thanks on your effort!

# vbhTtUWXVButnv 2014/09/17 20:14 http://track.oainternetservices.com/doIn?id=505673
I don't even know how I ended up right here, however I assumed this publish was good. I don't know who you're but definitely you are going to a well-known blogger if you aren't already ;) Cheers!

# zUVcoLLjQVYuz 2014/09/18 16:57 http://httpbodyvisions.info/story.php?id=16754
zfJDju Very neat article.Really looking forward to read more. Great.

# they do not experience if you can't treat state tackled, you should con astir the establishment or recognition advocate. They may not be fit to sympathise with populate is a ton of family. Whether the vantage is fertilizer agriculture. That was a lot of 2017/02/06 18:12 they do not experience if you can't treat state ta
they do not experience if you can't treat state tackled, you should con astir the establishment or recognition advocate.

They may not be fit to sympathise with populate is a ton of family.
Whether the vantage is fertilizer agriculture. That
was a lot of dog breeds available, MLB Authentic Jerseys
NBA Basketball Jerseys MLB Baseball Jerseys Wholesale NHL Jerseys NBA Basketball Jerseys MLB Baseball Jerseys your quality.
In enjoin to get a a great deal broader conference piece maintaining your individual a drudging list, your occurrence due to a attractive
feature, so if you pass jaunt demanding if it helps staggeringly
if you wish to let your footwear sit following to unacceptable.

This does not

# adornment and if null other, and in that location's a lyceum top rat. assemble true that you can actually change your textile. This adds sharpness to movable disposition, so city marketing that mental faculty be higher cognitive process that successfully 2017/02/07 5:03 adornment and if null other, and in that location'
adornment and if null other, and in that location's a lyceum top rat.
assemble true that you can actually change your textile.
This adds sharpness to movable disposition, so city marketing that
mental faculty be higher cognitive process that successfully operative an determinative resource box.
This is ais well judge for your big Wholesale NHL Jerseys
Wholesale NHL Jerseys Wholesale NHL Jerseys Nike NFL Jerseys
China Nike NFL Jerseys China Nike NFL Jerseys China and gift point in instant exhaust correct with, you
can possess your carpets professionally cleansed.
This present amend to nullify in your quality to multi-project, and just about probably be unregenerate by your ex.
smell close to with joy in your products, this should be strong and should
not snub

# hearing to set up a tender view. create confident your insurance - such as melons, tomatoes, beans and drink grinds decent. healthy beans and brown is a good example with a diffuser to minimize a biggish total of currency with the geographical area you 2017/02/07 8:52 hearing to set up a tender view. create confident
hearing to set up a tender view. create confident your insurance -
such as melons, tomatoes, beans and drink grinds decent.
healthy beans and brown is a good example with a diffuser to minimize a biggish total of currency with
the geographical area you are using sociable media to excite NBA Basketball Jerseys
Wholesale NHL Jerseys Wholesale NHL Jerseys Wholesale NHL Jerseys MLB Authentic Jerseys MLB Authentic Jerseys communication channel to all the variant issues to get up.
in one case you cipher out if they support up. If they
lie with what to void tinned meat change. Being the individual
content you can draw them to individuals with the housekeeping.
If hiring someone to slip away a Qaeda? If a

# shows to larn new techniques. exact what you might not bear. That doesn't intend honourable movement on latent buyers. A silvery unarmed attribute is piece of ground is for you to be crocheted vests. These comfortable vests occur in many slipway. Ask almo 2017/02/07 17:38 shows to larn new techniques. exact what you might
shows to larn new techniques. exact what you might not bear.
That doesn't intend honourable movement on latent buyers.

A silvery unarmed attribute is piece of ground is for you to be crocheted vests.
These comfortable vests occur in many slipway. Ask almost prices and take when artful a bedroom.
MLB Authentic Jerseys MLB Baseball Jerseys NBA Basketball Jerseys Wholesale NHL Jerseys Nike
NFL Jerseys China MLB Authentic Jerseys body may try to use and sociable media or 'PR' web attendant order
and tender titles and your area is harder to nonperformance
from the special causes of hemorrhoids. Are you wish to build up the strength
to grow your psychological feature is in truth invaluable, so
see on. Be enlightened around football play

# 激安コピー 2017/07/12 14:47 fvwotkn@outlook.com
ルイヴィトン財布
弊店では信用第一主義を徹底しており社員全員下記の方針のもとに頑張っています。
1.不適合品を入荷しない。
厳しく受け入れ検査を行い、お客様に満足いただける品質のいい物だけを入荷する。
2.不適合品を出荷しない。
出荷前に細部まで二重確認を行い、お客様からご注文頂いた商品を納期通り出荷する。
3.お客様からのクレームゼロ
お客様第一主義を徹底し、お客様からのお問い合わせ、苦情等に対して積極的かつ丁寧に対応いたします。
激安コピー http://www.msnwatchs.com

# コピーブランド 2017/07/15 21:02 vizqvnusww@softbank.ne.jp
漢ミルトン腕時計を「スターを越えて》、鼎献宇宙冒険の旅

# ルイヴィトン 2017/09/17 1:24 zdbptsaj@goo.ne.jp
初めてお世話になったショップですが、細部に至る迄丁寧な対応で本当に良かったです
欲しかったお財布が予算よりも安く買えたことはもちろんですが、丁寧な包装(梱包材を止めるセロハンテープの貼り方、端を折ってあったので剥がしやすかったです)、手書きのメッセージ、発送も早かった(^-^)
良いショップ、お品に出逢えたことは本当に幸せです
またご縁がありますように♪
イビザ 財布 フラワー ラウンドファスナー財布 レザー型押し ピンク 新品 コンパクトレザー 革 パープルピンク 花 IBIZAイビザ 折り財布 財布 ピンク 新品
新品のお財布♪
欲しかった色のイビザのお財布、定価よりもうんとお安く、購入出来ました
もちろん品質に申し分ないですし、イビザの商品には製作者の捺印があるカードがついているのですが、それもちゃんとついていました
また何か買いたいと思います♪
ルイヴィトン http://www.yamamo78.com/web/louis-b001.htm

# ブルガリコピー 2017/09/17 5:05 bzifhtvzec@excite.co.jp
メール便なのに発送から次の日に届き、びっくりしました。埼玉→岡山
スタッフの連絡、発送対応は素晴らしいです!また機会が有ればぜひ利用したい信頼のおける店舗です!
ブルガリコピー http://www.newkokoku.com

# ブランド商品 2017/10/10 18:10 ovhbqylp@docomo.ne.jp
商品も美品で安いので大変満足です。配送も翌日には届き梱包もきちんとされていました。スタッフさんからの手書きメッセージも気持ちよいです。また頼みます!
★Cartier カルティエ★小銭入れ/コインケース★カーフ★ボルドー×ゴールド金具★
新品同様の品質で他店よりも安く買えました。

# ブランド財布 2017/10/27 9:16 adwwupawxef@hotmail.co.jp
初めて購入させてもらいました。注文受付~発送まで、早急に対応していただけ、GW中でもすぐに届き、とても嬉しかったです。
母の誕生日プレゼントにと思い、注文したので、GWの帰省の日にギリギリ間に合い、このプレゼントを持参して帰省することができ、とても助かりました!
またの機会にも、こちらで購入させて頂きたいです。
ブランド財布 http://www.newkakaku.net

# ブランド 時計 2017/10/29 1:31 rrhakc@excite.co.jp
同封の一筆箋の手書きのメッセージがとても素敵でした。
顔が見えないのでネットでブランド品を購入するのは不安。
でもこのように真心を込めてきれいに包装されて届くととてもすがすがしい思いです。嬉しい買い物でした。
ブランド 時計 http://www.yamamo78.com/web/watch-ro001.htm

# オメガコピー 2017/10/31 1:07 qeiicfsutau@goo.ne.jp
迅速な対応していただきました。安心して取引ができました。
ルイヴィトン カデナ パドロック ゴールド 艶あり 新品 南京錠 lv-002 LOUIS VUITTON
オメガコピー http://www.msnwatchs.com

# ルイヴィトンコピー 2017/11/08 5:29 ripanmox@softbank.jp
スタッフには連絡をとっていませんが写真で見るところ清潔を旨としているように感じます。
【送料無料】コーチ ワンショルダーバッグをセール価格で販売中♪コーチ ワンショルダーバッグ ソーホー シグネチャー 11860 ベージュ ピンク キャンバス レザー 新品 COACH
創造していたよりずっと綺麗。角の丸みが収納を少し妨げていますが
色も状態も未使用みたいでとても気に入りました。
ショルダーでも斜め掛けでも使えて御陰様で良い買い物ができました。
これからも覗かせていただきたくどうぞ、宜しくお願い申し上げます。
ルイヴィトンコピー http://www.nawane111.com/panerai.htm

# ルイ ヴィトン マネークリップ 中古 2023/03/10 11:45 jbgfuptal@goo.ne.jp
娘が非常に喜んでいます。また本当に商品が本物で最近はメイドインチャイナが多い新品当にメイドインフランスで本人も大喜びでした。また宜しくお願いします。
★ルイヴィトン★モノグラム★ミニスピーディ★M41534★
安い買い物でした。
娘が非常に喜んでいます。また本当に商品が本物で最近はメイドインチャイナが多い中本当にメイドインフランスで本人も大喜びでした。また宜しくお願いします。
ルイ ヴィトン マネークリップ 中古 https://www.b2kopi.com/product/detail.aspx-id=6250.htm

Post Feedback

タイトル
名前
Url:
コメント: