Quote:
quote:Originally posted by alyeng2000
could you see us the code you use for printing
Ahmed Ali
Software Developer
|
Mr. Ali
Thank you for your response. As advised by you I am sending a part of the printing routine:
Private Sub Print_Click()
...........
more coding above here which has no problem.
The part below is collecting data from FlexGrid "Table" and sending to to printer. Cannot align the numbers to line up the decimal points.
.........
Margin = 2000
row = 0
col = 0
Table.col = col
Table.row = row
Do While Table.Text <> ""
Table.col = col
Table.row = row
Printer.CurrentY = 9200 + row * 200
Printer.CurrentX = margin
Printer.Print Table.Text
Table.col = 1
Printer.CurrentY = 9200 + row * 200
Printer.CurrentX = margin + 2580
Printer.Print Table.Text
Table.col = 2
Printer.RightToLeft = True
Printer.CurrentY = 9200 + row * 200
Printer.CurrentX = margin + 2580 + 1750
Printer.Print Table.Text
Table.col = 3
Printer.CurrentY = 9200 + row * 200
Printer.CurrentX = margin + 2080 + 1150 + 2580
Printer.RightToLeft = True
Printer.Print Table.Text
Table.col = 4
Printer.CurrentY = 9200 + row * 200
Printer.CurrentX = margin + 2580 + 1150 + 2080 + 2080
Printer.RightToLeft = True
Printer.Print Table.Text
row = row + 1
col = 0
Table.col = col
Table.row = row
Loop
Printer.EndDoc
End Sub