|
-
Feb 6th, 2000, 04:36 AM
#1
Thread Starter
Addicted Member
I like to print a double line on the paper, like String$(80,205), but it won't work in VB (in TurboBasic it worked well). What can I do ?
------------------
-
Feb 6th, 2000, 04:38 AM
#2
Addicted Member
-
Feb 6th, 2000, 06:03 AM
#3
You must use a font that containes that character.
Dim sOldFontName$
sOldFontName = Printer.FontName
Printer.FontName = "Terminal"
Printer.Print String$(80, 205)
Printer.FontName = sOldFontName
'the rest of your print procedure
Printer.EndDoc
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
-
Feb 6th, 2000, 09:02 AM
#4
Hyperactive Member
You'll get more control (i.e. position, width, angles) with Line property:
Printer1.Line (X1, Y1) - (X2, Y1)
State it twice (with a slight different Y) for a double line.
------------------
Improve your self-esteem.
It's so easy even you can do it!
[This message has been edited by Juan Carlos Rey (edited 02-06-2000).]
-
Feb 7th, 2000, 03:49 AM
#5
Thread Starter
Addicted Member
Thanks Joacim, I am using this and it works fine.
Juan I think your way is also right, but how can I now where the coordinates must be before or after printing the text on the paper ?
regards, K. Lensen
------------------
-
Feb 7th, 2000, 09:27 AM
#6
Hyperactive Member
Hi, Kars. It's easy. You have a "CurrentY" property that let you know where you are.
If you want to print a line say 50 twips after a line of text, do so:
Printer.Line (X1, CurrentY + 50) - (X2, CurrentY + 50)
------------------
Improve your self-esteem.
It's so easy even you can do it!
[This message has been edited by Juan Carlos Rey (edited 02-07-2000).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|