I will appreciate if someone can help me with an idea to solve this issue. I need to print the content of several editfields that contain numbers. The print is generated without problem but all the numbers are aligned to the left:
15,000
7,000
11,000
Is there some way to print all the numbers aligned to the right…?
Instead of and tag, you can use a button at the top-right of the reply area.
The page icon with the < > in it.
You can also use the square brackets [ and ] in combination with ‘code’ and ‘/code’, instead of the < and > you used.
This makes your code much more readable.
Dim p as Graphics
Dim mynumber as String
Dim marginright as Integer
//Vars
p=OpenPrinterDialog()
marginright=50
If p<>Nil Then
mynumber = format(15000.55, "###,###.00")
p.drawstring(mynumber, (p.width-p.stringwidth(mynumber))-marginright, 100)
mynumber = format(7000, "###,###.00")
p.drawstring(mynumber, (p.width-p.stringwidth(mynumber))-marginright, 120)
mynumber = format(11000.33, "###,###.00")
p.drawstring(mynumber, (p.width-p.stringwidth(mynumber))-marginright, 140)
End If