Solved

Printing multiple fonts

Posted on 1998-10-01
3
187 Views
Last Modified: 2013-12-03
I have to print multiple fonts within 1 report on 1 page.
I can change the fontsize etc only once.
When i try to change if for the second ord third time, the first selected font remains active until i give a .enddoc.

What am i doing wrong?

I am using:
printer.font.size = 10
printer.font.bold = true
printer.print "Example"
printer.font.size = 12
printer.font.bold = false
printer.print "Example 2"



0
Comment
Question by:amannien
3 Comments
 
LVL 2

Accepted Solution

by:
dabellei earned 100 total points
ID: 1437689
I've try your code and it's Ok on my computer.  Anyway check your font your using.  Try to put the line printer.fontbold=false before changin the size of the font.

I've change the font three time on the same page before doing a enddoc, try your program on another computer to verify.

0
 
LVL 12

Expert Comment

by:mark2150
ID: 1437690
I seem to remember a note that said that you had to sometimes send the font change twice for it to take effect. This was a workaround. Multiple font printing does work. you have to be sure that the font you're selecting actually has the variant you're calling for. Not all fonts have all permutations of roman/bold/italic/bold&italic available at all sizes. There is also a problem going below 8 points. But the 10 & 12 you're calling for should work just fine.

M
0
 

Author Comment

by:amannien
ID: 1437691
Thanks,

You guy's put me in the right direction.
I am using an hp3p and when i turn off the bold printing before chaching the font time, it all works fine.

Super!
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question