printing and print preview

printing and print preview

Post by Christian Rudde » Mon, 13 Jul 1998 04:00:00



Hello, I'm having lots of trouble getting print preview and what it prints
out to look the same.   Any time I use a font that is vertical it appears in
different place when previewed then when it is printed.
Anyone know who to fix this?
Thanks,
Jed

 
 
 

printing and print preview

Post by John A. Gran » Mon, 13 Jul 1998 04:00:00



>Hello, I'm having lots of trouble getting print preview and what it prints
>out to look the same.   Any time I use a font that is vertical it appears
in
>different place when previewed then when it is printed.
>Anyone know who to fix this?

    Two tips on matching screen output to print output when using
    fonts:

    1. specify your font size in points and convert to pixels
        separately for each HDC (printer & screen):
            ht_pixels=ht_points*GetDeviceCaps(hdc,LOGPIXELSY )/72;

    2. make sure you have LOGFONT set up correctly, so that
        rotation is consistent:
            LOGFONT lf;
            lf.lfClipPrecision=CLIP_LH_ANGLES;
        If you don't do this, the rotation of the font may be different
        for printer & screen, depending on the font. Read the
        documentation for further details.

--
John A. Grant  * I speak only for myself *  (remove 'z' to reply)
Airborne Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here

 
 
 

1. Print/Print Preview

I am trying to use Print Preview in an MFC app to display a graphic image
(drawn via GDI calls). The image is being drawn correctly but it is _very_
small (the problem).

What do I need to do to get the image to fill the print preview sheet?

I suspect that I have to do some type of conversion from screen resolution
to printer resolution before drawning the image in preview (as well as
print) mode.

Kendall Schmidt

2. DE500 on Alpha VMS 6.2

3. print/print preview for bitmaps

4. WM_KEYDOWN: what is code 91? (iPaq)

5. Print and Print preview

6. ?How to create Web-based pdf form to send email with completed- form as attachment

7. Print/Print Preview

8. Will this CD-ROM drive work w/NeXTCube?

9. Print and print preview problem (ASSERT error when allocating GDI font resource in OnBeginPrinting)

10. HELP!!!! MFC PRINT/PRINT PREVIEW

11. Print and Print Preview

12. Printing / Print Preview problems

13. Printing and Print Preview discrepency