Stranen problem s printing sus MFC

2 отговора 89 прегледа
#1

Stranen problem s printing sus MFC

Vzimam si konteksta na printera i mu setvam mapping mode MM_LOMETRIC,

Davam StartDoc....
V momenta v koito izvikam StartPage, konteksta svoevolno si smenya rejima na MM_TEXT

I tova stava samo na nyakoi printeri - Canon BJC 2000 ne pravi problem,
Lazeren BROTHER - 1240 - se pravi na umen i si smenya mapping mode :)

Rezultat - na lazerniya printer - neshtata izlizat v puti po-malki ...no koeto e strannoto izlizat, kato se ima v predvid ce vertilkalnata os e s obratna posoka - pri MM_TEXT - raste nagore a pri MM_LOMETRIC raste nadolu ...


Ima li znachenie koga setvam mapping mode...prediili sled startpage..zashtoto ako mu pripomnya na printera che tryabva da raboti v MM_LOMETRIC sled StartDoc - vsichko e OK ....

I vse pak e stranno kak modelut na printera vliyae na super abstraktniya "ustroistveno nezavisim microsftski kontekst" :(

Nyakoi dulbal li e na tazi tema ?

P.S. Abe hora ...kak pechatate i Preview-vate ot VB ? ...az ot nevolya sednah da pisha ActiveX za PrintPreviwew ....a mrazya da izmislyam koleloto :(

Ima li v .NET neshto podobreno na tema print/preview ?

Pozdravi !

Отговор
в отговор на FullScream #2

Re: Stranen problem s printing sus MFC

Windows 95/98/Me: EndPage does not reset the device context attributes. However, the next StartPage call does reset the device context attributes to default values. At that time, you must re-select objects and set up the mapping mode again before printing the next page. Note that StartPage also resets the device context state stack used by the SaveDC and RestoreDC functions to default values.

Windows NT/2000/XP: Neither EndPage or StartPage resets the device context attributes. Device context attributes remain constant across subsequent pages. You do not need to re-select objects and set up the mapping mode again before printing the next page; however, doing so will produce the same results and reduce code differences between versions of Windows.

Отговор
в отговор на zliq #3

Re: Stranen problem s printing sus MFC

Mdammm...... MSDN .....trabva da se chete vnimatelno ....sega go vidyah ....mersi !:)

Отговор