15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Getting page information for printing

Jean-Francois Bertrand -- monsieur@step.polymtl.ca
Friday, November 01, 1996

Environment: Windows 95, Visual C++ 4.0

Hi,
I'm building a database application using CDAORecordView and CDAORecordset,
since the printing is not supported directly for a CFormView, I'm getting
all the information I need to create a CDC object from DoPreparePrinting
that I call when I want to print.  What I would like to have from my CDC
object in  the Maximum number of logical units of my output device context.

I' ve tried cdc->GetWindowExt, and it would return (cx=1,cy=1)

I'm probably missing a step here and I would like to know what it is.

I know that when you print from a view that supports printing it gives you
the pInfo structure that contains exactly what I want.  Is possible to
access all that after the call to DoPreparePrinting.



Jean-Francois Bertrand
Software Engineer
MACESS Corporation.
monsieur@step.polymtl.ca



Dulepov Dmitry -- dima@ssm6000.samsung.ru
Tuesday, November 05, 1996

        [Mailer: "Groupware E-Mail". Version 1.01.035]


1. Use CDC::GetDeviceCaps(HORZRES)/CDC::GetDeviceCaps(VERTRES) and =
CDC::DPtoLP() to convert device points to logical points.

2. Why printing is not supported in CFormView? OnDraw() works and o=
ther methods works in the same way for printing. I use them success=
fully in my application.


Dmitry A. Dulepov
Samsung Electronics Co., Ltd.
Russian Research Center
Phone: +7 (095) 213-9207
Fax: +7 (095) 213-9196
E-mail: dima@src.samsung.ru
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
-----------------------------
>        [From: Jean-Francois Bertrand
>        [Address: monsieur@step.polymtl.ca
>        [To: Dmitry A. Dulepov
>        [Date: Sun Nov 03 13:47:42 1996
>Environment: Windows 95, Visual C++ 4.0
>
>Hi,
>I'm building a database application using CDAORecordView and CDAOR=
ecordset,
>since the printing is not supported directly for a CFormView, I'm =
getting
>all the information I need to create a CDC object from DoPreparePr=
inting
>that I call when I want to print.  What I would like to have from =
my CDC
>object in  the Maximum number of logical units of my output device=
 context.
>
>I' ve tried cdc->GetWindowExt, and it would return (cx=3D1,cy=3D1)=

>
>I'm probably missing a step here and I would like to know what it =
is.
>
>I know that when you print from a view that supports printing it g=
ives you
>the pInfo structure that contains exactly what I want.  Is possibl=
e to
>access all that after the call to DoPreparePrinting.
>
>
>
>Jean-Francois Bertrand
>Software Engineer
>MACESS Corporation.
>monsieur@step.polymtl.ca=





| Вернуться в корень Архива |