Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 8th, 2008, 01:09 PM
Authorized User
 
Join Date: Jul 2003
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?

 
Old May 13th, 2008, 11:38 AM
Friend of Wrox
 
Join Date: Dec 2004
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





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





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