| View previous topic :: View next topic |
| Author |
Message |
rexford Newbie
Joined: 20 Nov 2003 Posts: 6
|
Posted: Nov 20th, 2003 05:31 PM Post subject: Printer.Print method |
|
|
Hello there!
In my VB6 code, I am using the following line to print strings.
[Printers.Print Str1, Str2, Str3]
I understand that the comma is used to place each string at next tab position.
Is there any way that I can change the size of a tab so that I can put the string at a position that I prefer?
Thanks in advance. |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Nov 21st, 2003 04:40 PM Post subject: |
|
|
Maybe if you use spaces instead of having VB tab automatically? I haven't tested this but how will this work?
| Code: | | Printer.Print Str1 & " " & Str2 |
_________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
rexford Newbie
Joined: 20 Nov 2003 Posts: 6
|
Posted: Nov 24th, 2003 11:23 AM Post subject: |
|
|
I have found better solution.
Printer.Print Str1;Tab(5);Str2;Tab(15) .....
I can adust the numbers in Tab() to get to the exact location.
Thanks anyway! _________________ Nothing is better than good thing... |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Nov 26th, 2003 08:36 AM Post subject: |
|
|
Oh well. Whatever works for you
BTW, does my way work? _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
Andir Centurion

Joined: 21 Dec 2003 Posts: 184 Location: Chicago Area
|
Posted: Dec 23rd, 2003 01:34 PM Post subject: |
|
|
Yeah, your way would work too, it would work with whatever string you build. _________________ If you happen to see little people sitting on your desk...don't tell anyone or they might think your crazy too. |
|
| Back to top |
|
|