Solved

Printing multiple fonts

Posted on 1998-10-01
3
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
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…

730 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