473,750 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1820
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.Scr eenUpdating = False
Documents.Add Template:="norm al"
For Each ListFont in FontNames
With Selection
.Font.Name = "Arial"
.Font.Size = 12
.TypeText ListFont
.TypeText Text:=Chr(11)
.Font.Name = ListFont
.TypeText "ABCDEFGHIJKLMN OPQRSTUVWXYZ"
.TypeText Text:=Chr(11)
.TypeText "abcdefghijklmn opqrstuvwxyz"
.TypeText Text:=Chr(11)
.TypeText Text:="12345678 90!@#$%^&*()"
.TypeText Text:=Chr(11)
.InsertParagrap hAfter
.MoveDown Unit:=wdParagra ph, Count:=1, Extend:=wdMove
End With
Next ListFont
Selection.Whole Story
Selection.Sort
Selection.HomeK ey 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.

xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx

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.Scr eenUpdating = False
Documents.Add Template:="norm al"
For Each ListFont in FontNames
With Selection
.Font.Name = "Arial"
.Font.Size = 12
.TypeText ListFont
.TypeText Text:=Chr(11)
.Font.Name = ListFont
.TypeText "ABCDEFGHIJKLMN OPQRSTUVWXYZ"
.TypeText Text:=Chr(11)
.TypeText "abcdefghijklmn opqrstuvwxyz"
.TypeText Text:=Chr(11)
.TypeText Text:="12345678 90!@#$%^&*()"
.TypeText Text:=Chr(11)
.InsertParagrap hAfter
.MoveDown Unit:=wdParagra ph, Count:=1, Extend:=wdMove
End With
Next ListFont
Selection.Whole Story
Selection.Sort
Selection.HomeK ey 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
12418
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. http://www.aczoom.com/isongs/0/t_ff.html is the test page - that has shows the line "This is using CSS to specify xdvng:" show up with the default english font instead of xdvng. Internet Explorer works as expected - both CSS and FONT FACE use of
5
27844
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 syntax for setting either font type or font size for a text box on a report. Does anyone know? Help. Please! dixie
1
2653
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 client then allows the user to print the report on a networked printer. To avoid having to launch an external application on the client I use a server-side print method. When I call ReportDocument.PrintToPrinter the report comes out fine but the...
10
8314
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 the Barcode fonts to be self-installed at runtime whenever a report is viewed. I tried the following steps: Public Shared Sub InstallFonts()
3
1492
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 seems to revert back to a standard font and displays letters instead of card symbols. Any ideas.? Can I embed a font or include one in my VB app.? Thanks
1
1489
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 the courier new font. It defaults to a font (which I don't know). The portrait uses Courier New. Does anyone know if there is a known issue with printing Courier New in verticle in Access 2003? It works in Access 2002.
24
2840
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 with the printer that i am printing to(Zebra TLP2844). When i open Word and look at the fonts available for the default printer, it does not show the fonts i want. If i cahnge the printer to the printer that
3
5630
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 database is used to print name tags for functions, and it would be nice for the operator to have a choice of different fonts, colours and backgrounds. I have a copy of Terry Kreft and Stephen Lebans font selector mdb Thanks
0
1230
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 (printer properties). Usually when what you're describing happens, it's because the printer driver is substituting fonts that aren't built into the printer. It's more efficient for the driver to use font substitution, because then
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9583
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9342
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8263
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.