Tuesday, 18 June 2013

Some lines may be missing printing to OneNote

In one of the applications I work on with my Peach Innovations hat on, we have recently discovered how useful it is to print directly to One Note for generating reports.

However we discovered today that pen’s created like this

HPEN hp = ExtCreatePen(PS_GEOMETRIC|PS_JOIN_BEVEL|PS_ENDCAP_FLAT, thickness, &lbr, 0, NULL);

with a thickness of zero don’t actually show up when sent to one note, although they show up on screen, and on every printer we’ve ever used, as well as printing to XPS.

I can’t find anywhere that documents that this shouldn’t work, but setting the pen to thickness 1 solves the issue.

No comments:

Post a Comment