Discussion:
Printing anomalies
(too old to reply)
Alexh
2010-07-01 21:44:50 UTC
Permalink
Hi,

I finally implemented the print function on my app and it works except
that all of the dashed lines are printed as solid lines and all
horizontal lines are much heavier than the screen view or print
preview.

Everthing looks as it should in print preview.
When I print nothing is cut off or missing and all text looks good.

I'm using VS2005. I implemented everything using the typical method
found in books.
I always use the CPen constructor -

CPen(
int nPenStyle,
int nWidth,
COLORREF crColor
);


The printer is just a typical consumer inkjet which I have used for
years.

Thanks for any tips.
Alexh
2010-07-16 19:17:55 UTC
Permalink
Post by Alexh
Hi,
I finally implemented the print function on my app and it works except
that all of the dashed lines are printed as solid lines and all
horizontal lines are much heavier than the screen view or print
preview.
Everthing looks as it should in print preview.
When I print nothing is cut off or missing and all text looks good.
I'm using VS2005. I implemented everything using the typical method
found in books.
I always use the CPen  constructor -
CPen(
   int nPenStyle,
   int nWidth,
   COLORREF crColor
);
The printer is just a typical consumer inkjet which I have used for
years.
Thanks for any tips.
Found the problem -

For dashed or dot lines, the nWdith parameter above must be 0(one
pixel) for printing.

Loading...