D
Duong Nguyen
Hello,
I am trying to program to work with POS-Printer in page mode. So I want to
set the page height at run time. Depend on the number of lines to draw to
Canvas, I must set the Page height.
So I can get the height in pixel Height = LineCount *
font.GetHeight(GraphicsObject);
and set the page size:
prndoc.DefaultPageSettings.PaperSize = new
System.Drawing.Printing.PaperSize("custom", width, height);
width and height is in Hundredth of an inch.
So How can I convert from Height (in Pixel) to Height in hundredth of an
inch?
I am trying to program to work with POS-Printer in page mode. So I want to
set the page height at run time. Depend on the number of lines to draw to
Canvas, I must set the Page height.
So I can get the height in pixel Height = LineCount *
font.GetHeight(GraphicsObject);
and set the page size:
prndoc.DefaultPageSettings.PaperSize = new
System.Drawing.Printing.PaperSize("custom", width, height);
width and height is in Hundredth of an inch.
So How can I convert from Height (in Pixel) to Height in hundredth of an
inch?