In my application I need to print some graphs with trends during test. To enhance the graphs aspect I want to add a box around the plot area (the 3d aspect of graphs disappears during printing) and I create a flat box wit transparent interior and place it in the proper position basing on the ATTR_PLOT_AREA_xx attributes of the graphs.
If I see the panel on the video or create a bitmap from it the boxes are correctly placed, but when I print the panel the left side of the box shiftes a little towards the right, invading the plot area.
What can be happening? To print the panel I simply draw the background in white, hide the "Print" button and send to the printer by
error = PrintPanel (tmpH, "", 1, VAL_FULL_PANEL, 0);
Anyone ha
s an adie on it?
Attached a sample bitmap and the resulting pdf produced (identical to the actual printout).
Roberto