Hi all,
I am creating a small application to to track addresses. I am trying to print two separate columns of data. I cannot seem to find a good reference on printing. My current code prints straight down the center of the page. Any help would be appreciated.
Current Code:
hwidth = Printer.TextWidth(line1) / 2 ' Get one-half width.
Printer.CurrentX = Printer.ScaleWidth / 2 - hwidth
Printer.CurrentY = Printer.ScaleHeight / 20 - hheight
hheight = Printer.TextHeight(line1) / 20
Printer.Print line1
Printer.FontSize = 12
hwidth = Printer.TextWidth(line2) / 2 ' Get one-half width.
Printer.CurrentX = Printer.ScaleWidth / 2 - hwidth
Printer.Print line2
hwidth = Printer.TextWidth(line3) / 2 ' Get one-half width.
Printer.CurrentX = Printer.ScaleWidth / 2 - hwidth
Printer.Print line3
I am creating a small application to to track addresses. I am trying to print two separate columns of data. I cannot seem to find a good reference on printing. My current code prints straight down the center of the page. Any help would be appreciated.
Current Code:
hwidth = Printer.TextWidth(line1) / 2 ' Get one-half width.
Printer.CurrentX = Printer.ScaleWidth / 2 - hwidth
Printer.CurrentY = Printer.ScaleHeight / 20 - hheight
hheight = Printer.TextHeight(line1) / 20
Printer.Print line1
Printer.FontSize = 12
hwidth = Printer.TextWidth(line2) / 2 ' Get one-half width.
Printer.CurrentX = Printer.ScaleWidth / 2 - hwidth
Printer.Print line2
hwidth = Printer.TextWidth(line3) / 2 ' Get one-half width.
Printer.CurrentX = Printer.ScaleWidth / 2 - hwidth
Printer.Print line3