Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 8th, 2008, 01:09 PM
Authorized User
 
Join Date: Jul 2003
Location: Medford, OR, USA.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Embedded printer control codes in VB

I need to change fonts in the middle of a line. Embedding printer control characters (such as ESC(s1p16v0s3b4101T) in a VB Printer.Print command merely prints all these characters rather than changing fonts. Copying a text file containing the same data to the printer works correctly. How can this be done in VB?

Reply With Quote
  #2 (permalink)  
Old May 13th, 2008, 11:38 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello,

to change the font in while printing time...

u can use simply the printer.font.name property to set the font to print the char at particular X and Y, and after printing set the property to normal so it prints as normal of the other text.

I am using the same are header text and body text where the font size is bigger to other.

Hope this helps.

With Regards,
Raghavendra Mudugal
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
volume control for embedded audio in dreamweaver julien balmer Dreamweaver (all versions) 0 September 30th, 2006 07:50 AM
volume control for embedded audio in dreamweaver julien balmer Dreamweaver (all versions) 0 September 30th, 2006 07:48 AM
Help with Printer Object in VB aniljacob VB How-To 1 March 23rd, 2006 03:22 PM
Printer control language command Gret C# 0 February 2nd, 2006 01:14 AM
Problem with eMbedded VB sporkman43 VBScript 0 March 24th, 2004 02:07 PM



All times are GMT -4. The time now is 08:22 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.