473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

A97 Font / Report question

MLH
This is NOT of paramount importance. I'm sure there are others
whose questions are mission critical. Mine is not.

I have always wanted a report that looked like this...

Here is some sample text in Alba.
Here is some sample text in Alba Matter.
Here is some sample text in Alba Super.
....
Here is some sample text in Times New Roman
....
Here is some sample text in ZapfDingbats BT
Here is some sample text in ZapfEllipt BT
Here is some sample text in ZapfEllipt BT

Of course, what I want is to recurse through all the available
font types I have, printing a line in each of the fonts. This is
nothing more than to have a quick glance at printed fonts,
as they look right out-a-my printer tray.

Thought maybe one of you might have done this before.
Nov 13 '05 #1
2 1715
On Fri, 12 Aug 2005 09:31:06 -0400, MLH wrote:
This is NOT of paramount importance. I'm sure there are others
whose questions are mission critical. Mine is not.

I have always wanted a report that looked like this...

Here is some sample text in Alba.
Here is some sample text in Alba Matter.
Here is some sample text in Alba Super.
...
Here is some sample text in Times New Roman
...
Here is some sample text in ZapfDingbats BT
Here is some sample text in ZapfEllipt BT
Here is some sample text in ZapfEllipt BT

Of course, what I want is to recurse through all the available
font types I have, printing a line in each of the fonts. This is
nothing more than to have a quick glance at printed fonts,
as they look right out-a-my printer tray.

Thought maybe one of you might have done this before.


Can you do it using Word?

Create a new Word document.
Click on Tools + Macro + Record New Macro

When the new macro dialog opens write
ListFont
as the Macro Name.

Click OK.
Type any few characters then click the Stop Macro button.

Click on Tools + Macro
Select the ListFont macro + Edit

Delete ALL the existing text of the macro.
Copy and paste the following code:

Sub ListFont()
'
' Will display all fonts available on your computer
'
Dim ListFont as Variant
Application.ScreenUpdating = False
Documents.Add Template:="normal"
For Each ListFont in FontNames
With Selection
.Font.Name = "Arial"
.Font.Size = 12
.TypeText ListFont
.TypeText Text:=Chr(11)
.Font.Name = ListFont
.TypeText "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
.TypeText Text:=Chr(11)
.TypeText "abcdefghijklmnopqrstuvwxyz"
.TypeText Text:=Chr(11)
.TypeText Text:="1234567890!@#$%^&*()"
.TypeText Text:=Chr(11)
.InsertParagraphAfter
.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdMove
End With
Next ListFont
Selection.WholeStory
Selection.Sort
Selection.HomeKey Unit:=wdStory
End Sub
=========

Save the macro change and exit back to your document.
Click Tools + Macro
Select the ListMacro
Click Run.

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
MLH
Word, huh? Didn't occur to me. I like
your solution. Am gonna give it a try.
I wish it had been an A97 solution, but
what the hey - this will definitely do the
trick.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Can you do it using Word?

Create a new Word document.
Click on Tools + Macro + Record New Macro

When the new macro dialog opens write
ListFont
as the Macro Name.

Click OK.
Type any few characters then click the Stop Macro button.

Click on Tools + Macro
Select the ListFont macro + Edit

Delete ALL the existing text of the macro.
Copy and paste the following code:

Sub ListFont()
'
' Will display all fonts available on your computer
'
Dim ListFont as Variant
Application.ScreenUpdating = False
Documents.Add Template:="normal"
For Each ListFont in FontNames
With Selection
.Font.Name = "Arial"
.Font.Size = 12
.TypeText ListFont
.TypeText Text:=Chr(11)
.Font.Name = ListFont
.TypeText "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
.TypeText Text:=Chr(11)
.TypeText "abcdefghijklmnopqrstuvwxyz"
.TypeText Text:=Chr(11)
.TypeText Text:="1234567890!@#$%^&*()"
.TypeText Text:=Chr(11)
.InsertParagraphAfter
.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdMove
End With
Next ListFont
Selection.WholeStory
Selection.Sort
Selection.HomeKey Unit:=wdStory
End Sub
=========

Save the macro change and exit back to your document.
Click Tools + Macro
Select the ListMacro
Click Run.


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: B Wooster | last post by:
There is a page that shows Firefox 1.0 render text differently for CSS as compared to FONT FACE for one particular font: http://www.aczoom.com/fonts/xdvng.ttf is the font that does not work. ...
5
by: dixie | last post by:
I want to be able to set the font size and font type for text in a text box on a report using VBA. I wan't to be able to control it from a setting in a table. The problem is that I don't know the...
1
by: Aaron Bronow | last post by:
I have an asp.net application which loads a Crystal Reports ReportDocument, passes in parameters for selecting data from the report's database connection, renders the report for previewing on the...
10
by: Sylvain Audet | last post by:
Hello! We have a Windows application that is using Crystal Reports reports containing Barcode fonts. Those reports are called through reflection into a Crystal Report Viewer and we need to have...
3
by: Chubbly Geezer | last post by:
I'm using a particular font (for credit card symbols) within a crystal report which looks fine when I preview, however when I run the report with real data, the font is now shown correctly. It...
1
by: tminihan | last post by:
I have a report that pulls it's information from a text file. I have the report (Invoice) set up to print some of it in vertical and some of it in portrait. Problem: the verticle won't select...
24
by: Tony Girgenti | last post by:
Hello. Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on a windows XP Pro, SP2. Before printing a document, i want to set the font to a font that is only available...
3
by: Phil Stanton | last post by:
Correct me if I'm wrong, but is it impossible to change the font in a report field when in print preview (MDE database) or can it only be done in design view in the MDB database. Part of my...
0
by: Peter Duniho | last post by:
On Wed, 23 Apr 2008 09:40:14 -0700, Al Meadows <fineware@fineware.com> wrote: This doesn't really seem to be a .NET or C# question. However, you may want to look at the driver settings...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.