|
-
Aug 17th, 2000, 04:36 PM
#1
Thread Starter
Junior Member
Hi,
I'm trying to print text (yes, text-only) to a page, but the text needs some formatting. Here is a sample code I have:
Code:
Printer.<font color="#00007F">Print</font> "Blablabla: "
Printer.FontBold = True
Printer.<font color="#00007F">Print</font> CommandNumber & vbCrLf & vbCrLf
Printer.FontBold = False
The problem with that snipet of code is that it prints "blablabla: " on one line and then the number in bold on another line (which is not what I was looking for). It would also be great to be able to change the font in the same line of text.
Are there methods to find out if you skipped a page, or should I check the Printer.CurrentY and see when I'm close to the next page in order to initiate a NewPage?
Thanks.
-
Aug 17th, 2000, 06:06 PM
#2
Hyperactive Member
Im not exactly sure what you are doing, but, if you want to print text the way I normally do it is:
Printer.font.bold = true
Printer.Print "Try this"
printer.font.bold = false
print.print "Number here"
EndDoc
Matt 
-
Aug 17th, 2000, 07:00 PM
#3
Thread Starter
Junior Member
Printer.font.bold = true
Printer.Print "Try this"
printer.font.bold = false
print.print "Number here"
EndDoc
Yes, but this will print Try this and Number here on two different lines. I want to be able to print them on the same line!
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
|