S
StrandElectric
Well, once again Thanks heaps Jason! Have been playing with your code and
all is well. Can use it to generate my reports. What a break-through! Thanks
for info on how to include a reference. I never did that in vb6.
I have nutted out changing the measure to millimetres (my preference),
printer dialog and before that how to change the orientation (thank God for
intellisense) but I am stumped on how to decimally align figures. Of
course 'Help' should tell me that but as I've observed before it is quite
useless!
Suppose I have two (currency but I don't wish to show the $ sign) figures
1.2 and 345.56. How do I format them to print with the *decimal points in
line* , *and* also with 1.2 made out to 1.20?
I used to do it in vb6 with
Dim Aligned As String
....
....
Aligned =Format(AnyVariable, "#,###.00"): Printer.CurrentX = 149 -
Printer.TextWidth(Aligned)
This gives me right alignment but it is the *decimals* I want aligned, and
also the 1.2 dollars padded out to 0 in the absence of an explicit 0. Of
course in vb6 this was catered for by the type 'Currency' and of course
vb.net doesn't have it. Another real world omission?
all is well. Can use it to generate my reports. What a break-through! Thanks
for info on how to include a reference. I never did that in vb6.
I have nutted out changing the measure to millimetres (my preference),
printer dialog and before that how to change the orientation (thank God for
intellisense) but I am stumped on how to decimally align figures. Of
course 'Help' should tell me that but as I've observed before it is quite
useless!
Suppose I have two (currency but I don't wish to show the $ sign) figures
1.2 and 345.56. How do I format them to print with the *decimal points in
line* , *and* also with 1.2 made out to 1.20?
I used to do it in vb6 with
Dim Aligned As String
....
....
Aligned =Format(AnyVariable, "#,###.00"): Printer.CurrentX = 149 -
Printer.TextWidth(Aligned)
This gives me right alignment but it is the *decimals* I want aligned, and
also the 1.2 dollars padded out to 0 in the absence of an explicit 0. Of
course in vb6 this was catered for by the type 'Currency' and of course
vb.net doesn't have it. Another real world omission?