PDA

Click to See Complete Forum and Search --> : Printing


Seeker870
Dec 11th, 1999, 03:00 AM
I realize that it should be simple but it's not...
This is what the code looks like:

[All of the excess has been cut]
For Count1=1 to NumCopies
Printer.Fontsize = 14
Printer.Print Tab((Printer.Width-TextWidth(WName))/2); WName
Printer.FontSize = 10
Printer.Print Tab; " "
Printer.Print Tab; "Malf: "; Malf
Printer.Print Tab; "Damage Type: "; DamType
[Ect., Ect.]

This then is the problem... The title (WName) should be printed centered at the top. But it's not. Anyone have any ideas why?
The rest of it works just fine.


------------------
To Seek is to start on the never ending road to wisdom. To fail to seek, the path path to death.

MartinLiss
Dec 11th, 1999, 03:17 AM
Do this instead
For Count1=1 to NumCopies
Printer.Fontsize = 14
Printer.CurrentX = (Printer.Width / 2) - (TextWidth(WName) / 2)
Printer.Print WName
Printer.FontSize = 10
Printer.Print Tab; " "
Printer.Print Tab; "Malf: "; Malf
Printer.Print Tab; "Damage Type: "; DamType




------------------
Marty