Hi,
I use the HP LaserJet 4350 PCL 6 printer and it is a profesional printer. It defenetly can print that
dimension. My aplication will create automaticaly a rectangle with dimension given from the keyboard. This are
mecanical drawings and that's why I need them to be precise. Now, I'm not sure that CVI can give me that.
First I tried to draw on a canvas. The function for the rectangle is like this:
rectVal=MakeRect (top, left, height, width) ;
CanvasDrawRect (panelHandle, PANEL_CANVAS,rectVal, VAL_DRAW_FRAME_AND_INTERIOR);
but top,left,height,width are integer.
I tried with the graph. I made my drawing at my dimmesions but when I print it, the dimension are
different.
double topMM=0,leftMM=0,widthMM=0;
double mm=1/.21;//(1pixel = 0.21mm)
double width_bit1=0.9*mm,space=1.3*mm;
double left_bit1=width_bit1+space;
double heightMM=13*mm;
plot = PlotRectangle (panelHandle, PANEL_GRAPH, width_bit1+leftMM, heightMM, leftMM, topMM,VAL_TRANSPARENT,
VAL_BLACK);
status = PrintCtrl (panelHandle, PANEL_GRAPH, "", 1, 1);
Thanks.