Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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 June 22nd, 2003, 02:20 AM
Authorized User
 
Join Date: Jun 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default printer object fonts

Writing 512 bit encryption...tcp/ip layer encryption..and yet, this has me..stumped. It's a sad day for module0000.

Anyone have experience setting the printer objects fonts *without* using common dialogue?
i.e.: Printer.FontName = "Fixedsys" or Printer.Font = "FixedSys"

now those don't work..but that's the idea, any help?
 
Old June 22nd, 2003, 07:58 AM
Authorized User
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use the 2 methode:

Code:
Dim oFont As StdFont
Set oFont = New StdFont
  oFont.Name = "FixedSys"
  oFont.Size = 10

  Set Printer.Font = oFont


Or

Code:
Printer.FontName = "FixedSys"
Make sure that your font name is correctly type and that it's a valid font (It's present in the windows font folder)

Stéphane





Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer Object rudycoop Beginning VB 6 1 December 28th, 2007 12:01 PM
Printer Object in .NET ashu_from_india VB.NET 2002/2003 Basics 1 September 1st, 2006 08:24 AM
Printer Object in .NET ashu_from_india VS.NET 2002/2003 2 August 26th, 2006 12:03 PM
Printer Object in .NET ashu_from_india General .NET 0 August 25th, 2006 08:49 PM
Help with Printer Object in VB aniljacob VB How-To 1 March 23rd, 2006 03:22 PM





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