Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » General

Post new topic   Reply to topic
Printer.Print method
View previous topic :: View next topic  
Author Message
rexford
Newbie


Joined: 20 Nov 2003
Posts: 6

PostPosted: Nov 20th, 2003 05:31 PM    Post subject: Printer.Print method Reply with quote

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
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Nov 21st, 2003 04:40 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
rexford
Newbie


Joined: 20 Nov 2003
Posts: 6

PostPosted: Nov 24th, 2003 11:23 AM    Post subject: Reply with quote

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
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Nov 26th, 2003 08:36 AM    Post subject: Reply with quote

Oh well. Whatever works for you Wink

BTW, does my way work?
_________________
No one is completely useless. They can at least be an example of what to avoid.
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Andir
Centurion


Joined: 21 Dec 2003
Posts: 184
Location: Chicago Area

PostPosted: Dec 23rd, 2003 01:34 PM    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic